Home CPP Interview Questions

What are abstract class and concrete class?

C++ introduces concept of virtual function and pure virtual function. When a class has a pure virtual function it acts as an interface and objects cannot be created for such classes. Such class are called abstract class. Some classes implement this interfaces (implementing pure virtual functions) and so objects can be created. This are called Concrete class.