Community answers

Object Oriented Programming

CT 501

Question
2082 Shrawan2081 BaishakhChapter 7: Polymorphism and Dynamic Binding7.5 Pure Virtual Functions and Abstract Classes

What are the different types of polymorphism? Explain pure virtual function. Create an abstract class polygon with length and height as its data members. Make area() a pure virtual function and redefine it in derived classes triangle and rectangle to calculate respective area. Your program should demonstrate run time polymorphism.

Add an answerChecking contribution access...

Community answers

0 answers

Search by subject name, course code, or acronym.