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 a lock or purpose of locks in java?
What is the difference between a synchronized method and a synchronized block?
What are advantages of exception handling in java?
What are the difference between string, string builder, and string buffer in java?
Does java runtime require a license?
Explain how hashmap works?
Explain the difference between private, public, package and protected in java?
How many types of constructors are used in java?
What is void keyword?
What is an example of declaration?
What type of variable is error flag?
Why is singleton not thread safe?
Explain about procedural programming language or structured programming language and its features?
What do you mean by singleton class in java?
What do you mean by stream pipelining in java 8?