-
C++ help =D
Ok i have a quiz tomorrow and i wanted to know if this logic sounds right.
Classes and objects is the topic.
Here is how i picture it.
We have the library, the class, the object, and the function header.
The library for the class can be this truck. Inside the truck you have this box which is the class. Inside the box contains different sections for different purpose(sections are function headers). You place your object(the instatiation) in one of the sections depending on what you need.
logic ok?
-
Hmm well that kinda works but to me the library is only the method calls and basic funtions. Such as cin or cout it does everything to make those workable behind the scenes. You described it as a truck and the class you are creating as box in the truck. But you are not creating a class inside a library you are using the library to create your class.
-
hmm well i'm not learning how to create classes yet i'm only learning how to use them. I think the truck part is probably a bad idea to explain the library with but you do agree about the box and everything else right :?
I do understand how the library works and i think you are right about the part of the truck not making much logic.