C++
Programming and Technical
Explain term POLIMORPHISM and give an example using eg. SHAPE object: If I have
a base class SHAPE, how would I define DRAW methods for two objects CIRCLE and
SQUARE
Read Solution (Total 1)
-
- SHAPE *ptr;
CIRCLE c;
SQUARE s;
ptr=&c;
ptr->DRAW();
ptr=&s;
ptr->DRAW(); - 10 years agoHelpfull: Yes(0) No(0)
C++ Other Question