Загрузка...

Java : @Override & Covariant Return Types, Rules of Polymorphism (Visibility, Exceptions & more)

Hey guys! Welcome back to Phase 3 of the Java Mastery Series. Today, we are diving into the final major pillar of Object-Oriented Programming: Polymorphism.

In this video, we focus heavily on Method Overriding and how to use the @Override annotation correctly. We will go through all the strict rules you need to follow when overriding methods—including visibility rules, exception handling, and how the final and static keywords change things. After that, we look at Covariant Return Types, and finish up with a side-by-side comparison of Overriding vs Overloading.

Hope this helps clear up how polymorphism works! Let me know in the comments if anything is confusing you.

⏳ Chapters:
0:00 - Polymorphism Intro
1:05 - Method Overriding
3:40 - @Override Annotation
6:58 - Visibility Rule in Polymorphism
8:18 - Exception Rule in Polymorphism
12:00 - Final & Static Rule
14:02 - Covariant Return Types
21:40 - Overriding Vs Overloading

Visit https://beat99.academy for DSA practice & content access.
Full Java Mastery Playlist: https://www.youtube.com/playlist?list=PLVEf7cRv1KZlkvxXh4wWtVyjbFKGJxy7q

#java #javapolymorphism #methodoverriding #javaoop #JavaMasterySeries #SoftwareEngineering

Видео Java : @Override & Covariant Return Types, Rules of Polymorphism (Visibility, Exceptions & more) канала Beat99.Academy
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять