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 |
Can you instantiate the math class?
What is sleep method?
What are different types of classloaders?
What are field variable and local variable?
Under what circumstances an object reference be cast to an interface reference?
How an object is serialized in java?
1.) if we use "private" in place of "public" in public static void main()... 2.) if we use "int" in place of "void".... 3.) can we ommit "static" keyword from that statement.... 4.) also can we give the command line arguments type as int type or float,etc.(.i.e (string args[]))
What are loops in java? What are three types of loops?
How to change the priority of thread or how to set priority of thread?
What is the use of flag?
what is overloading and overriding with example?
I want to persist data of objects for later use. What’s the best approach to do so?