0

does overlaod happens in same class and override in different classes? am i right?

polymorphism: does overlaod happens in same class and override in different classes? am i right?

12th Oct 2017, 3:19 PM
anu
anu - avatar
2 Réponses
+ 2
Yupp. Though you can overload global functions as well (those that are not in classes).
12th Oct 2017, 4:31 PM
Norbivar
Norbivar - avatar
+ 3
Not really. You can overload parent methods. (So, overloading doesn't have to be in the same class).
12th Oct 2017, 6:46 PM
Rrestoring faith
Rrestoring faith - avatar