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 void keyword?

0 Answers  


How do you pass by reference?

0 Answers  


What are selection structures?

0 Answers  


is it mandatory to deaclare all variables public static fianl in interfaces?if i declare like in the below program, public interface A { public static final int I=0; int j=0; } in interface A,what is the difference between I,j?

2 Answers  


What is core java used for?

0 Answers  


Difference between String and String Buffer?

3 Answers  


What is contract between hashcode and equal method?

0 Answers  


What is private static in java?

0 Answers  


System.out & System.in are final static data member of System class but we can change there reference through setOut() & setIn() method how...

2 Answers   FCS, TCS,


A class can be a subclass of itself?

2 Answers   Genesis,


Difference between Array and vector?

9 Answers  


What is map and hashmap in java?

0 Answers  


Categories