Answer Posted / sree
virtual function comes into picture while inheriting the
base class functions to the derived class functions.
ifthe virtual isnot used then the pointer of derived class
points to the baseclass function
Is This Answer Correct ? | 28 Yes | 1 No |
Post New Answer View All Answers
What is solid in oops?
What is the important feature of inheritance?
Which type does string inherit from?
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.
What is polymorphism what is it for and how is it used?
Prepare me a program for the animation of train
What is the main purpose of inheritance law?
What is polymorphism and its types?
What are the three main types of variables?
What is methods in oop?
Can a destructor be called directly?
Can we define a class within the interface?
What is encapsulation with example?
What are constructors in oop?
write string class as your own class in java without using any built-in function