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 use of using enum to declare a constant?

542


What is consumer in java?

511


How many bytes is string in java?

595


What is a function easy definition?

511


explain the difference between jdk and jvm?

551






Why java does not support pointers?

544


Can we pass a primitive type by reference in java? How

518


What's the default access specifier for variables and methods of a class?

497


What is <> used for in java?

656


How to add menushortcut to menu item?

552


What is sizeof () operator?

561


Variable of the boolean type is automatically initialized as?

579


What is the difference between the ">>" and " >>>" operators in java?

493


What are the advantages of exception handling in java?

638


What is the difference between variable declaration and variable initialization?

490