Answer Posted / poonam
Virtual function is a function that uses keyword "virtual"
with the datatype of the function. When the base class as
well as the derived class contains a function both having
the same name, just to resolve ambiguity and copy of the
same data again and again we use the keyword "virtual"
preeceeding it. It is used to achieve poymorphism.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is debug class?what is trace class? What differences are between them? With examples.
Can we override main method?
Plese get me a perfect C++ program for railway/airway reservation with all details.
What is super in oop?
What is class and object in oops?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
Can main method override?
Why is polymorphism important in oop?
What is encapsulation in oop?
What is meant by oops concept?
What is oops with example?
write string class as your own class in java without using any built-in function
What is stream in oop?
explain sub-type and sub class? atleast u have differ it into 4 points?
What are functions in oop?