2078 10

Object Oriented Programming20785 marksPure virtual functions

Explain pure virtual functions with example.

Explain pure virtual functions with example. [5]

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. It forces every derived class to provide its own implementation of that function. Syntax: --- Feature Description ------ Declaration Uses = 0 at the end ...

Up nextWhat is exception handling? Explain how to handle an exception with appropriate example.