+ 3

interface and inheritance

I think that in "The Scanner class inherits from the Iterator" it would sound better if "inherits" is changed to "implements". That way we explicitly mention that the Iterator is an interface and not a class.

13th Mar 2018, 6:50 AM
Krzysztof Dymkowski
Krzysztof Dymkowski - avatar
2 Antworten
+ 23
You can send your suggestion to info@sololearn.com
13th Mar 2018, 8:30 AM
Igor Makarsky
Igor Makarsky - avatar
0
inheritance Inheritance use for method overriding. it use "extend"key word. you cannot extend multiple time. Inheritance it use for method overloading. it use"implementation" keyword you can implenebt multiple classes
8th Jun 2018, 6:40 PM
Nilamani