What is the difference between overloading and overriding a
function?

Answer Posted / ankit

IN overloading the function are used in same class, they
have different parameters each time we define the funtion,
and perform the same task.

overriding is used in diferent class with same parameters.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a lambda expression ? What's its use ?

782


Is hashset sorted in java?

853


Can we extend private class in java?

755


What is a war file?

738


What is bitwise complement?

712


What is a flag variable?

740


What is a buffer in java?

764


What is the right data type to represent a price in java?

739


What is Recursion Function?

868


What is the private method modifier?

798


Is null an object java?

735


how does multithreading take place on a computer with a single cpu? : Java thread

897


List the features of java programming language.

774


What is valid keyword in java?

749


When will you define a method as static?

775