Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
Why we cannot use return value types to distinguish overloaded methods??
2 Antworten
+ 1
Because compiler have have a clue which method you want him to call based on return value, if that makes sense to you. You dont point out return type when calling a method just its name. if methods have same parameters there is no chance to diatinguish which to call.
0
doesn't have a clue***