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 better - 'bit-shift a value' or 'multiply by 2'?
What is the purpose of nested class in java?
What are the rules for variable declaration?
Can you explain inner class.
What is variable length arguments in java?
Is java code slower than native code?
Can the garbage collection be forced by any means?
What is sorting in java?
Describe the Big-O Notation.
What is the difference between stringbuffer and stringbuilder class?
What is == mean?
Write code of any action class?
Which is illegal identifier in java?
What is a method declaration?
Difference between string s= new string (); and string s = "abv";?