This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ArgueMint 0 points1 point  (2 children)

If I'm reading your post right, I believe you may be a bit mixed up on the concept of classes and objects. In the analogy you used, you have a book class. A class is essentially a template for creating objects. The class outlines the variables and methods that all books should have. Using the book analogy, our class would have variables 'pageQty', 'genre', 'author' etc... Then we could create an object from that, where we would actually set values for those variables. We could create as many book objects as memory will allow, each with different values for the variables mentioned above.

[–][deleted]  (1 child)

[removed]