2079 12

BIT153 ยท 2079 ยท 5 marks

Explain the use of pure virtual function with example.

Explain the use of pure virtual function with example. [5]

Object Oriented ProgrammingChapter 8: Static and Dynamic PolymorphismPure virtual functions

A pure virtual function is a virtual function that has no implementation in the base class and is declared by assigning = 0 in its declaration. A class containing at least one pure virtual function is called an Abstract Class. --- Feature Description ------ Declaration Uses = 0 at the end Base cl...