what is an virtual function

Answers were Sorted based on User's Feedback



what is an virtual function..

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

what is an virtual function..

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

Post New Answer

More Core Java Interview Questions

What is try-with-resources in java?

0 Answers  


What is ph and buffers?

0 Answers  


Explain the transient field modifier?

0 Answers  


Is null an object java?

0 Answers  


Java does not support multiple inheritance. how interface helps in the same?

5 Answers   TCS,






How does compareto work in java?

0 Answers  


What is difference between class and object in java?

0 Answers  


What is the difference between checked exception and unchecked exception?

0 Answers  


What about features of local inner class?

0 Answers  


What are the 6 functions?

0 Answers  


How do you use compareto?

0 Answers  


Can you make a constructor final?

0 Answers  


Categories