A class which contains at least one pure virtual function is called an abstract class. Since abstract class is incomplete, another class should derive it and provide definitions for the pure virtual functions in the abstract class. Following are the features of an abstract class: Abstract class must contain at least one pure virtual function. Objects cannot be created for an abstract class. But pointers can be created. Classes inheriting an abstract class must provide definitions for all pure virtual functions in the abstract class. Otherwise, the sub class also becomes an abstract class. An abstract class can have
The post What is abstract class in C++ Programming appeared first on Coding Security.
What is abstract class in C++ Programming
read more
Tidak ada komentar:
Posting Komentar