+ 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.
2 Antworten
+ 23
You can send your suggestion to info@sololearn.com
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