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
Can a static block throw exception?
Can extern variables be initialized?
How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?
Why string is called as immutable?
What is covariant return type?
How do you do descending order in java?
Does java have a compiler?
What are the characteristics of Final,Finally and Finalize keywords.
What is a nullable field?
What are 5 boolean operators?
What are streams in java 8?
Can list be null in java?
Why static functions are used?
Why char array is preferred over string for storing password?
What is class and its types?