What are virtual functions?

Answer Posted / satendra

In OOP, virtual methods are those methods which can be
overridden within an inheriting class by a function with the
same signature. This concept is a very important part of the
polymorphism portion of OOP. In JAVA by default all methods
are virtual.

Is This Answer Correct ?    19 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is a valid identifier?

766


Can sleep() method causes another thread to sleep?

781


what is deadlock? : Java thread

735


Can we define private and protected modifiers for the members in interfaces?

826


What makes a function well defined?

764


What is a string token?

726


What invokes a thread's run() method in java programming?

808


What are the important features of Java 9 release?

754


Can we declare the static variables and methods in an abstract class?

758


Is alive in java?

708


What is the difference between static and global variables and also define what are volatile variables?

808


List implementations of list interface?

790


Can a class be final?

701


What are the differences between getting and load method?

743


What is methods and methodology?

783