I dun have a concept of compostion in OOP ,, Can anybuddy Help me??!!
I dun have a concept of compostion in OOP ,, Can anybuddy Help me??!!
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.
Whoops...
And by transitive property, done ≠ don't.