what is an virtual function
Answers were Sorted based on User's Feedback
Answer / ejp
There are no virtual functions in Java so the question is
futile. There are non-final functions, which can be
overridden by a derived class.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / 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 |
What is serializable interface?
13 Answers Infosys, Probity Soft, Seed Infotech,
What is a prefix function.write down a code to compute prefix function.
Which is fastest collection in java?
Hi Friends, can you explain instance in java. In general instance means "occurence of something" . In java what is instance.
How we can skip finally block of exception even if some exception occurs in the exception block in java?
how to convert mm/dd/yy to dd/mm/yy using collections in java.
What is the use of accept () method in java?
What is lambda programming?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
What does java edition mean?
What is difference between static class and normal class?
What is the purpose of garbage collection in java? When is it used?