Java I About the Tutorial


Java – Inheritance ................................................................................................................................. 300


Download 1.04 Mb.
Pdf ko'rish
bet12/30
Sana16.06.2023
Hajmi1.04 Mb.
#1491611
1   ...   8   9   10   11   12   13   14   15   ...   30
Bog'liq
java tutorial

21.
Java – Inheritance ................................................................................................................................. 300
extends Keyword ......................................................................................................................................... 300
Sample Code ................................................................................................................................................ 300
The super keyword ...................................................................................................................................... 302
Invoking Superclass Constructor ................................................................................................................. 305
IS-A Relationship .......................................................................................................................................... 306
The instanceof Keyword .............................................................................................................................. 308
HAS-A relationship ....................................................................................................................................... 309
Types of Inheritance .................................................................................................................................... 309
22.
Java – Overriding .................................................................................................................................. 311
Rules for Method Overriding ....................................................................................................................... 313
Using the super Keyword ............................................................................................................................ 314
23.
Java – Polymorphism ............................................................................................................................ 315
Virtual Methods ........................................................................................................................................... 316

Download 1.04 Mb.

Do'stlaringiz bilan baham:
1   ...   8   9   10   11   12   13   14   15   ...   30




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling