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 1 of 6.

Prashant said:   9 years ago
So let's say we have a team creating a big project and we want the whole team to create many classes but they all must inherit a single BASE class for some particular functionality like debugging. So if we would create an abstract class which has only one virtual function which gives a debugging interface and inherits this is in all the other team's classes it would be easier. Why virtual because the derived classes could also have the same function with the same signature.
(5)

Madhu said:   7 years ago
An abstract class does not have any instance of a class.
(3)

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)

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)

Suchismita said:   3 years ago
Abstart class creates a static of class.
(2)

Ashitosh said:   8 years ago
How many objects can be created from an abstract class?
(2)

Hassan maha said:   9 years ago
Which class has maximum instances, Can anyone tell the types of class having instances?
(1)

Ronak said:   1 decade ago
So why we use abstract class can anyone explain?
(1)

Abhishek singh said:   9 years ago
Abstract Class: A class is called as abstract class if it must have one or more abstract method.

Abstract method: Method which we just declare but not define, every class which inherits abstract class containing abstract method must define that method in its own way.

Abstract class can't have an instance object or variable because if we create an object of abstract class and using that object if we try to access abstract method then we will get compile time error as we don't have anything inside abstract method of that abstract class.
(1)

Fuad Al Masud said:   7 years ago
An abstract class is a private class which is used by admin panel.
(1)


Post your comments here:

Your comments will be displayed after verification.