Answer Posted / gp
Class which cannot be initiated is an abstract class.
You can make a class abstract by declaring a pure virtual method inside the class. For example:
class base
{
void func()=0;
};
void main()
{
base b;
}
Now you cannot instantiate base class.
The class which inherits this base class will also become abstract unless you define a body of the func() method in inherited class.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you answer polymorphism?
How to use CMutex, CSemaphore in VC++ MFC
What are the important components of cohesion?
Is enum a class?
What is class and object with example?
Whats is abstraction in oops?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What are the 3 principles of oop?
Can private class be inherited?
Explain the concepts involved in Object Oriented programming.
What are the 4 main oop principles?
Can we have inheritance without polymorphism?
What is inheritance write a program to show use of inheritance?
What is coupling in oops?
hi all..i want to know oops concepts clearly can any1 explain??