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

Which command from the jdk compiles a java program?

691


Can we override constructor in java?

831


What is the purpose of the system class in java programming?

771


What is stack class in java?

788


How can you add and remove nodes in jtree?

826


How do you declare a variable?

852


Is there a case when finally will not execute?

781


How do you do absolute value in java?

744


What is string and example?

795


What is dynamic binding(late binding)?

814


What are the four integer types supported by java?

808


Define class?

731


What is the difference between error and an exception?

790


What is difference between string and stringbuffer?

720


Explain the importance of finalize() method.

768