Computer Science, asked by nk3199671, 9 days ago

By taking an example base class and dreived class​

Answers

Answered by angelenematinao
0

Answer:

For example, in geometry, a rectangle is a quadrilateral (as are squares, parallelograms and trapezoids). Thus, in C++, class Rectangle can be said to inherit from class Quadrilateral. In this context, class Quadrilateral is a base class, and class Rectangle is a derived class.

Similar questions