Answer Posted / nishi tomar
A virtual function is a member function of a class, whose
functionality can be over-ridden in its derived classes. It
is one that is declared as virtual in the base class using
the virtual keyword. The virtual nature is inherited in the
subsequent derived classes and the virtual keyword need not
be re-stated there. The whole function body can be replaced
with a new set of implementation in the derived class.
Is This Answer Correct ? | 3 Yes | 5 No |
Post New Answer View All Answers
What is finally block?
Can we use different return types for methods when overridden?
What is an association?
What is difference between protected and private?
What is the difference between java applets and applications?
What are parsers? Dom vs sax parser.
What is java oops?
Why vector is used in java?
Can a constructor be made final?
What classes of exceptions may be caught by a catch clause in java programming?
What do you understand by java virtual machine?
What is a class object?
Why are pointers not secure?
Why isn’t there operator overloading?
What is the final variable?