Results 1 to 3 of 3

Thread: C++ help =D

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Banned Reputation: 20

    Join Date
    Nov 2007
    Posts
    1,168
    Rep Power
    0

    Default 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?

  2. #2
    Staff Admin Reputation: 29
    lothia's Avatar
    Join Date
    May 2006
    Location
    Kent Washington
    Posts
    5,210
    Rep Power
    19

    Default

    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.

  3. #3
    Banned Reputation: 20

    Join Date
    Nov 2007
    Posts
    1,168
    Rep Power
    0

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •