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.

Payal said:   9 years ago
What is Composition?

Ashwini said:   9 years ago
Why you answering as composition instead of inheritance?

Hardeep said:   10 years ago
Can anyone explain me relationship between inheritance and composition?

Shivani said:   10 years ago
Is composition similar to inheritance?

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

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

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

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

Vinesh said:   1 decade ago
Inheritance is having properties (member variables and member functions) of a class into another class and Composition is having object of some class into another class.

Shoeb qureshi said:   1 decade ago
Whats the main difference between composition and inheritance?


Post your comments here:

Your comments will be displayed after verification.