Composition

This is a discussion on Composition within the C++ Programming forums, part of the General Programming Boards category; I dun have a concept of compostion in OOP ,, Can anybuddy Help me??!!...

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    112

    Composition

    I dun have a concept of compostion in OOP ,, Can anybuddy Help me??!!

  2. #2
    Registered User
    Join Date
    Mar 2009
    Posts
    399

  3. #3
    Registered User
    Join Date
    Oct 2006
    Location
    Canada
    Posts
    1,243
    dun ≠ done
    anybuddy ≠ anybody.

    Did you search around for this topic? I.e., Object composition - Wikipedia, the free encyclopedia. Composition in OOP is a simple (though fundamental) concept. Basically, you think of a class as a big puzzle, or LEGO structure, and each "thing" inside it is just one piece of the puzzle, or one of the building blocks. "Thing" here is classes or primitive types. So, to make one class, you use pre-existing classes and types. That is, you compose these things together to make something new, the new class.

  4. #4
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,262
    More to the point dun ≠ don't.

  5. #5
    Registered User
    Join Date
    Oct 2006
    Location
    Canada
    Posts
    1,243
    Whoops...
    And by transitive property, done ≠ don't.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 11-10-2007, 03:51 PM
  2. Composition & Aggregration
    By aldajlo in forum C++ Programming
    Replies: 1
    Last Post: 10-26-2004, 04:39 PM
  3. Need help with Composition
    By cuddlez.ini in forum C++ Programming
    Replies: 3
    Last Post: 10-25-2004, 09:28 PM
  4. Inheritance vs Composition
    By Panopticon in forum C++ Programming
    Replies: 11
    Last Post: 01-20-2003, 04:41 AM
  5. composition, i think
    By blight2c in forum C++ Programming
    Replies: 3
    Last Post: 05-01-2002, 09:49 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21