what is virtual function?
Answer Posted / manab
When derived class overrides the base class method by
redefining the same function, then if client wants to
access redefined the method from derived class through a
pointer from base class object, then you must define this
function in base class as virtual function.
| Is This Answer Correct ? | 68 Yes | 7 No |
Post New Answer View All Answers
Explain the concepts involved in Object Oriented programming.
What is overloading in oops?
What is solid in oops?
How do you use inheritance in unity?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What is balance factor?
Can a destructor be called directly?
What are the benefits of polymorphism?
How oops is better than procedural?
Can you explain polymorphism?
What are classes oop?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
What is the main purpose of inheritance law?
What is multilevel inheritance?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)