How to make composition between two class in C+? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to make composition between two class in C+?

I'm trying to make composition butt i have a bit confusion about composition. Please help me

17th Apr 2019, 7:44 PM
Ahmed Butt
Ahmed Butt - avatar
2 Answers
0
Hi Ahmed do you mean this? C++ Inheritance. ... Inheritance is one of the key features of Object-oriented programming in C++. It allows user to create a new class (derived class) from an existing class(base class). The derived class inherits all the features from the base class and can have additional features of its own.
19th Apr 2019, 8:26 PM
Robin R.
Robin R. - avatar
0
Thanks Robin
19th Apr 2019, 8:35 PM
Ahmed Butt
Ahmed Butt - avatar