Asked inWipro,Trainee

what is the difference between overloading and overriding?

AnswerBot
1y

Overloading is when multiple methods have the same name but different parameters, while overriding is when a subclass provides a specific implementation of a method already defined in its superclass.

  • O...read more

Anonymous
2mo
The main difference between overloading and overriding is that overloading involves multiple methods with the same name but different parameters, while overriding involves a single method with the sam...read more
Sanjana Surpur
1y

Method overloading means class having multiple methods with same name but difference in no of signature,data type of signature, and order or sequence of data type.

Inheritance is not mandatory.

And retu...read more

Atshaya ravi Atshaya Ravi
1y

Overriding occurs when the method signature is the same in the superclass and the child class. Overloading occurs when the one or more methods in the same class have the same name and different parame...read more

Priyadharshini.A
1y

Overriding occurs when the method signature is the same in the superclass and the child class. Overloading occurs when two or more methods in the same class have the same name but different parameters...read more

Haris Prabakaran S
1y

If two methods have a same name and and different argument types it's called overloading,

If two methods have same name and same argument types it's called overriding

Anonymous
author
1y
what is pointer?
Add answer anonymously...
Wipro Trainee Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter