Java Programming: Lesson 38 - Overloaded Abstract Methods and Abstract Data Structures смотреть онлайн
PLEASE SUBSCRIBE!!!
In the previous video (https://youtu.be/vrjGwTGksl8), we reviewed a lot of OOP fundamentals and discussed return methods that print, as well as the instanceof keyword. We wrap up our OOP discussion in this video once and for all by reviewing the instanceof keyword again, as well as making a note about overloaded abstract methods as well as arrays or ArrayLists that are defined as type abstract.
y instanceof C returns true if and only if y is instantiated in C or a subclass of C (can be declared in a superclass).
Abstract methods in an abstract class or interface can be overloaded. You could also have some concrete and other abstract versions of an overloaded method. Any VERSIONS of an overloaded method that are abstract in an abstract method or interface must be formally defined in any concrete class that extends the abstract methods (or implements the interface).
We've said that we can declare an object as belonging to an abstract class or interface, as long as it is instantiated in a concrete class that extends it (or extends a subclass of it, ...) For an abstract class A, we can write
A[ ] abstractArray = new A[ ];
It seems like we're instantiating an abstract object, but as long as the elements coming into A are instantiated concretely, this is a valid data structure. We can then apply the instanceof keyword to check the particular data types of objects within the data structure. (All of this applies for ArrayLists as well, but YouTube won't let me have angled brackets which are the less than and greater than signs, required punctuation for an ArrayList. Remember to import java.util.ArrayList; if you take that approach.)
2:20 NEW: Overloaded Abstract Methods
12:58 NEW: Data Structures that Accept An Abstract Class or Interface
Next up? Sorting algorithms! https://youtu.be/jLAw4w5Va7s
Thanks for watching, and PLEASE SUBSCRIBE!!!
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Java Programming: Lesson 38 - Overloaded Abstract Methods and Abstract Data Structures» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.