Back to Browse

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

3.5K views
Jan 27, 2020
9:29

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 https://t.me/ITandCSLearning #abstract #class #pure

Download

0 formats

No download links available.

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