C++ OOP - Polymorphism
C++ OOP - Polymorphism
OOP - POLYMORPHISM
WHAT IS POLYMORPHISM ?
OUTP
UT:
EXAMPLE#2 (WITH VIRTUAL)
OUTP
UT:
WHAT IS PURE VIRTUAL FUNCTION ?
• It's possible that you'd want to include a virtual
function in a base class so that it may be redefined
in a derived class to suit the objects of that class,
but there is no meaningful definition you could give
for the function in the base class. Like the Shape
class, there is such way to determine its area
because it is not specific.
OUTP
UT: