C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 13)
13.
Which of the following concepts provides facility of using object of one class inside another class?
Encapsulation
Abstraction
Composition
Inheritance
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
48 comments Page 3 of 5.

Ronzzz said:   1 decade ago
Still not clear. When class is made up of objects, member functions are not objects then ?

Siva said:   1 decade ago
Still now I can't understand the concept of inheritance? please give me the example for inheritance.

Suvaran said:   1 decade ago
What is mean by composition please give answer & one example?

Divya said:   1 decade ago
What do you mean by composition in c++?

Shivani said:   1 decade ago
Is composition similar to inheritance?

Hardeep said:   1 decade ago
Can anyone explain me relationship between inheritance and composition?

Ashwini said:   1 decade ago
Why you answering as composition instead of inheritance?

Payal said:   1 decade ago
What is Composition?

Sarang patrange said:   1 decade ago
When object is made from other small object it is called composition?

Sarang patarnge said:   1 decade ago
Inheritance is relation in which, one class shares behaviors of one or more classes. Also in inheritance, subclass represents general behavior of its super class.

In composition allows physical grouping of logically related structures while inheritance allows common groups to be easily reused among different abstractions.

Eg. Room has wall, System unit has motherboard.


Post your comments here:

Your comments will be displayed after verification.