What is the difference between overloading and overriding a
function?

Answer Posted / rohit

overriding is used in diferent class with same parameters
overloading method :- is sem class in defintoin.
overriding method:- is subclass and super class in
definatioc

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we have two main methods in a java class?

537


What is exception hierarchy in java?

586


What are the types of strings?

559


I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?

585


What do you mean by platform independence? What is an interface?

563






Implement two stacks using a single array.

568


How can you set an applet’s height and width as a percentage?

511


What are constants and how to create constants in java?

556


What is method overriding in java ?

655


What is the use of math abs in java?

547


What is a consumer in java?

564


Is java still relevant?

496


What is a function argument in java?

517


How do I get 64 bit java?

526


What is java english?

489