2081 5

BIT153 ยท 2081 ยท 5 marks

Distinguish between concrete class and abstract class. Describe the roles of polymorphism.

Distinguish between concrete class and abstract class. Describe the roles of polymorphism. [5]

Object Oriented ProgrammingChapter 8: Static and Dynamic PolymorphismAbstract classes and concrete classes

Feature Concrete class Abstract class --------- Definition Every member function it declares or inherits has a body It declares at least one pure virtual function, written virtual T f() = 0; Instantiation Objects can be created directly No object can be created, only pointers and references to it...