C++ Program - abstract class in c++ | pure virtual function in c++ | inheritance in c++

preview_player
Показать описание
Implement the concept of abstract class

Design an abstract class named Shape [with data member area and two pure virtual functions findarea() and displaydetails() ]

Create two classes named Rectangle (with data members length and breadth) and Circle (with data member radius) derived from Shape

Include constructor in both subclasses to initialize data members.

Using the object of Rectangle and Circle, find and display area of rectangle and circle respectively
To learn more, join MicroNG group

#abstract #class #pure
Рекомендации по теме
Комментарии
Автор

Declare an abstact class Shape with methods 'area' a 'volume: Refine this super user class to subclass like cone ylineer * Redangle Bex . Then calculate area and volume for the subclasses.

LuckyKumar-qnhc
Автор

Please send me solution of this problem

LuckyKumar-qnhc
join shbcf.ru