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
What is this pointer in oop?
is there any choice in opting subjects like 4 out of 7
What is object in oop with example?
What is coupling in oops?
What is polymorphism in oops with example?
How do you explain polymorphism?
What is object-oriented programming? Webopedia definition
What is the benefit of oop?
Write a program to reverse a string using recursive function?
What is difference between inheritance and polymorphism?
Why interface is used?
What is abstraction example?
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
What is the real time example of inheritance?
What are main features of oop?