I'm wrapping my head around Objects before I move forward in the book. I understand the Car concept and instance of the objects.
But are Objects empty containers that are created for storing types of variables, or are they objects that already have all the code embedded in them?
I think I know that the printf function can be used because I import that object/class in the beginning that already has all the code that I in that class. So, all I have to type is printf and it refers to all the code in the class which saves me thousands of lines of code that I would normally have to write if that class did not exist, right?
Also Classes and Objects are the same right?
Thanks,
-Lars
But are Objects empty containers that are created for storing types of variables, or are they objects that already have all the code embedded in them?
I think I know that the printf function can be used because I import that object/class in the beginning that already has all the code that I in that class. So, all I have to type is printf and it refers to all the code in the class which saves me thousands of lines of code that I would normally have to write if that class did not exist, right?
Also Classes and Objects are the same right?
Thanks,
-Lars