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 |
how to split string in java?
Why should I use abstract class?
10. What is the output of the following Java program? class Main { public static void main(String args[]){ final int i; i = 10; System.out.println(i); } } 10. What is the output of the following Java program? class Main { public static void main(String args[]){ final int i; i = 10; System.out.println(i); } }
What is the difference between Java and C++?
0 Answers Integreon, TCS, ZS Associates,
how to handle http request in struts
In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?
What are the advantages of java inner classes?
How do you reverse a list?
What is bifunction in java?
What happens if an exception is not handled in a program?
What is the independent variable in an experiment?
What is a boolean field?