+ 3

What is an abstract class?

An abstract class is a class which contains at least one pure virtual function in it. Abstract class provides an interface to its sub classes and abstract class is designed to act as base class not used to create object..

26th Nov 2016, 2:12 AM
Shweta Pandey
Shweta Pandey - avatar
3 ответов
+ 3
an abstract class is a special type of class specifically used for data abstraction or data hiding. This is done by creating a pure virtual function and assigning its value to 0. Also, you cannot create an object for an abstract class.
26th Nov 2016, 2:18 AM
Arpit saxena
Arpit saxena - avatar
+ 1
A class which contains at least one pure virtual function in it is defined as abstract class. An abstract class can not have any instance or object. It is always used as an base class for other classes. However one can also access abstract class without using derived class but by using pointer towards abstract class.
29th Nov 2016, 6:05 PM
Gamer
Gamer - avatar
0
so kind of like a shadow drive right? just trying to learn
27th Nov 2016, 2:50 AM
lester mercer jr
lester mercer jr - avatar