wap to create a class fruit and derive one class Apple both has had same function get_cost() display the cost of total fruit and apple in c++
Answers
Answered by
1
Inheritance in C++ takes place between classes. In an inheritance (is-a) relationship, the class being inherited from is called the parent class, base class, or superclass, and the class doing the inheriting is called the child class, derived class, or subclass.
Similar questions