C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 8)
8.
How many instances of an abstract class can be created?
1
5
13
0
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
57 comments Page 2 of 6.

Yoshwa khyriem said:   1 decade ago
Abstract classes can be created, signified, or simulated in several ways: By use of the explicit keyword abstract in the class definition, as in Java, D.

Sowmya vn said:   1 decade ago
We can't create a instance class for abstract class and once we mention the class is abstract even we can't create the object for that class.

Aditya Bhonde said:   1 decade ago
To access a member function of abstract class we need not require a object. By creating a pointer of object we can call it or access it.

Naiknavare Dhanshri said:   3 months ago
@All.

-> We cannot create an instance (object) of an abstract class.

-> But, we can create a pointer of an abstract class.
(2)

Rachana singh said:   1 decade ago
According to me. We cannot create the object of the abstract class but we can create many time instances of the abstract class.

ManilKumar said:   8 years ago
The abstract class contains at least one pure virtual function.

The pure virtual function by using a pure specifier ( = 0 ).
(3)

Wilson said:   1 decade ago
Abstract class is not a main class to automatically create a object, only create reference to that particular class itself.

Sri said:   1 decade ago
In my view a parent class does not have any direct instance it means abstract class can be used to creation of subclasses.

Rajaram said:   1 decade ago
When a class is act as a parent class for all other classes and it should not be get instantiated by any derived class.

PVN b091086 said:   1 decade ago
Abstract Class is act like a base class to the derived classes;

So, we can't create any instance to Abstract class.


Post your comments here:

Your comments will be displayed after verification.