Java Lesson 15 | Polymorphism part 2

preview_player
Показать описание
talking about abstract methods
Рекомендации по теме
Комментарии
Автор

I did not even understand my lecturer, until watch your tutorial <3

JerryVPhan
Автор

You can just call print[40]

Very very clever in my opinion.

CinderBlock
Автор

please continue your java tutorials please

MrRichersoon
Автор

I thought the same thing when watching this video at first, but i came to two conclusions, one being that you simply cant make a polymorphic array without using only one method (in this case "print", which is abstract)
Furthermore, you dont have to create (in a large program), say 50 different methods, when the methods are only going to be called up once or twice,
so you just use the one method, and you store the data into an array,
that way even if you wanna call, method 40 for example

CinderBlock
Автор

Thanks for the videos, but I have questions
What's the point of Polymorphism? Why can't you just make an object of data type second and third?

raterake
Автор

This video stops at 07:02. Does this happen to only me?

naiad
visit shbcf.ru