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

Can we declare register variable as global?

0 Answers  


What does pointer mean?

0 Answers  


What is the use of anonymous inner classes ?

12 Answers   DELL, HCL,


what are different ways in which a thread can enter the waiting state? : Java thread

0 Answers  


Differentiate storage classes on the basis of their scope?

0 Answers   Fidelity,






What is the purpose of void class?

0 Answers  


what is synchronization and why is it important? : Java thread

0 Answers  


How do you sort objects in java?

0 Answers  


What is method with example?

0 Answers  


What is a variable simple definition?

0 Answers  


What is string length in java?

0 Answers  


How is string immutable in java?

0 Answers  


Categories