37 - Super keyword in Java

37 - Super keyword in Java

Codearchery

6 лет назад

13,257 Просмотров

The super keyword refers to the objects of immediate parent class.
The use of super keyword

1) To access the data members of parent class when both parent and child class have member with same name
2) To explicitly call the no-arg and parameterized constructor of parent class
3) To access the method of parent class when child class has overridden that method.

Site : Codearchery.com
My Instagram : https://www.instagram.com/dips6797/
Facebook Page : https://www.facebook.com/Codearchery/
Facebook Group : https://www.facebook.com/groups/153068202055471/

MUSIC:
Artist: Nicolai Heidlas
Title: The Countdown
**************************
Download the song here:
www.hooksounds.com/royalty-free-mu…untdown/338419/
---------------------------------------------------------
Back Music
Artist: Nicolai Heidlas
Title: On And On
https://soundcloud.com/nicolai-heidlas/90-bpm-on-and-on-upbeat-instrumental-pop-background-music
---------------------------------------------------------

Тэги:

#super_keyword_in_java #super_keyword_in_inheritance #super_keyword_hindi #super_keyword_english #how_to_use_super_keyword #java_super_constructor #use_of_final_keyword_in_java #this_keyword_in_java #super_keyword_tutorial
Ссылки и html тэги не поддерживаются


Комментарии:

Hafizur Rahman
Hafizur Rahman - 03.04.2023 16:53

Impressive Sir !

Ответить
jon do
jon do - 23.03.2023 19:10

very nice explanation. thank you

Ответить
MD Jahid Hasan
MD Jahid Hasan - 24.09.2022 12:55

It is a good vodio

Ответить
hari HARISH
hari HARISH - 18.02.2022 15:29

what if we have more than two variables then what value does super keyword take

Ответить
GirdhaR
GirdhaR - 18.12.2021 11:49

Oh nicei intro

Ответить
Hanumanth Ram
Hanumanth Ram - 20.11.2021 09:33

Ur explanation is excellent.. by using animations..🙌🏼

Ответить
Yuta Itadori
Yuta Itadori - 27.02.2021 13:33

Niccccceeee

Ответить
Ridhwan A
Ridhwan A - 18.06.2020 22:15

WELL ExPLAINED! you earned a sub :)

Ответить
Rosen
Rosen - 24.01.2020 03:28

Thanks bro

Ответить
go vegan
go vegan - 04.12.2019 19:26

The clearest tutorial I've seen for super, thank you

Ответить
Sprite Beverage
Sprite Beverage - 23.06.2019 06:55

i finally found a vid that helped me understand ! Thanks!

Ответить
Vinay Rathod
Vinay Rathod - 25.03.2019 08:31

So this Super keyword concept applies only on inheritance where subclass extends a base class?

Ответить
Priya Chaurawat
Priya Chaurawat - 04.09.2018 15:21

Awesome 😊

Ответить