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

What is the difference between array list and vector in java?

509


Is char * a string?

541


Why do we need array in java?

534


What do you understand by synchronization?

596


How many types of constructors are used in java?

542






What is the benefit of using enum to declare a constant?

661


Does collectionutils isempty check for null?

816


How do you define a variable?

539


What restrictions are placed on method overriding in java programming?

544


What are void methods?

572


What is procedure overloading?

1802


What is the set interface in java programming?

630


How to make a read-only class in java?

595


What are different types of encoding?

586


how do I create a runnable with inheritance? : Java thread

507