• Post Reply Bookmark Topic Watch Topic
  • New Topic

Overriding  RSS feed

 
sirisha makkapati
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,

Can We Call it OverLoading the Methods which are redifined with same name && Different signature in SubClass Level.


Thanks && Regards,
Sirisha.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16057
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are creating methods with the same name but with different arguments, then you are overloading methods, and not overriding methods.

Overloading = multiple methods with the same name but different arguments

Overriding = adding a method to a subclass that already exists as a non-private method in a superclass (with the same name and the same argument types)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!