Java Challenges #28 - Polymorphism, Casting, Abstract Classes

preview_player
Показать описание
Have fun with this new Java Challenge about one of the most crucial Java concepts, Polymorphism! By bonus, learn how to invoke specific methods from subclasses by using casting!

If you want to go deeper into Polymorphism, go to:

Get the code of the Java Challengers and run your own tests:

Рекомендации по теме
Комментарии
Автор

Hello, thanks. For a method in an interface, if we omit the access modifier there will be an implicit public access modifier. do we have the same thing in the abstract classes?when we implement an interface we can't reduce the access modifier capability like from public to protected, do we have the same thing in the abstract classes.

momedalhouma