can we have virtual functions in java?

Answer Posted / amar

In object-oriented programming, a virtual function or
virtual method is one whose behavior can be overridden
within an inheriting class by a function with the same
signature. irtual functions are abstract methods in java. by
default
all the methods are abstract in interface.

Is This Answer Correct ?    20 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you sort arraylist in descending order?

570


How do you get length in java?

551


How to declare an arraylist in java?

476


How do you add an element to an arraylist in java?

481


what are different ways in which a thread can enter the waiting state? : Java thread

484






What are the types of methodology?

502


Write a program to show whether a graph is a tree or not using adjacency matrix.

586


Can we sort a map in java?

570


How to pass arraylist to stored procedure in java?

538


What is a variable in java?

524


Is java pass by value or pass by reference?

532


What is blank final variable?

558


How do you check whether the list is empty or not in java?

507


If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?

658


How can you say java is object oriented?

583