Answer Posted / madhu
A pure virtual function tells the compiler that only
declaration is done here and it guarantees that function
definition will be done in the immediate class where object
is created.
It tells the user what it intended to do and without giving
complete details. And the pure virtual function will not
allow the user to create object and leads to abstract class.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Can enum be null?
What is a null tree?
What are properties in oop?
Why is abstraction needed?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
Which method cannot be overridden?
Can abstract class have normal methods?
Why is oop better than procedural?
What is the diamond problem in inheritance?
How do you achieve polymorphism?
What is destructor oops?
is there any choice in opting subjects like 4 out of 7
Why do we use encapsulation in oops?
What exactly is polymorphism?
How do you use inheritance in unity?