Java presention Inheritance present By Showrov Ahamed
-
Upload
md-showrov-ahamed -
Category
Engineering
-
view
120 -
download
5
Transcript of Java presention Inheritance present By Showrov Ahamed
![Page 1: Java presention Inheritance present By Showrov Ahamed](https://reader035.fdocuments.us/reader035/viewer/2022062218/58f9ad13760da3da068b94a9/html5/thumbnails/1.jpg)
WELCOME TO MY PRESENTION
Slide:1
![Page 2: Java presention Inheritance present By Showrov Ahamed](https://reader035.fdocuments.us/reader035/viewer/2022062218/58f9ad13760da3da068b94a9/html5/thumbnails/2.jpg)
SHOWROV AHAMED
161-35-140
Slide:2
![Page 3: Java presention Inheritance present By Showrov Ahamed](https://reader035.fdocuments.us/reader035/viewer/2022062218/58f9ad13760da3da068b94a9/html5/thumbnails/3.jpg)
Slide:3
![Page 4: Java presention Inheritance present By Showrov Ahamed](https://reader035.fdocuments.us/reader035/viewer/2022062218/58f9ad13760da3da068b94a9/html5/thumbnails/4.jpg)
ITS MY TOPIC
Slide:4
![Page 5: Java presention Inheritance present By Showrov Ahamed](https://reader035.fdocuments.us/reader035/viewer/2022062218/58f9ad13760da3da068b94a9/html5/thumbnails/5.jpg)
INHERITANCEIN JAVA
Slide:5
![Page 6: Java presention Inheritance present By Showrov Ahamed](https://reader035.fdocuments.us/reader035/viewer/2022062218/58f9ad13760da3da068b94a9/html5/thumbnails/6.jpg)
INHERITANCE
Slide:6
![Page 7: Java presention Inheritance present By Showrov Ahamed](https://reader035.fdocuments.us/reader035/viewer/2022062218/58f9ad13760da3da068b94a9/html5/thumbnails/7.jpg)
One of the most effective features of Oop’s paradigm. Establish a link/connectivity between 2 or more classes.
Permits sharing and accessing properties from one to another class.
to establish this relation Java uses ‘extends’ keyword
INHERITANCESlide:7
![Page 8: Java presention Inheritance present By Showrov Ahamed](https://reader035.fdocuments.us/reader035/viewer/2022062218/58f9ad13760da3da068b94a9/html5/thumbnails/8.jpg)
Category of Classes on the Basis of Inheritance
Super class (base/parent/driver/inheritance/ ancestor class).
Intermediate class (mediating/dual class). Child class (sub/associate/derived/inherited class).
Slide:8
![Page 9: Java presention Inheritance present By Showrov Ahamed](https://reader035.fdocuments.us/reader035/viewer/2022062218/58f9ad13760da3da068b94a9/html5/thumbnails/9.jpg)
Relation between classesSlide:9
![Page 10: Java presention Inheritance present By Showrov Ahamed](https://reader035.fdocuments.us/reader035/viewer/2022062218/58f9ad13760da3da068b94a9/html5/thumbnails/10.jpg)
SUPER CLASS
Top located class Service provider (its properties accessed by all its lower level class).
Slide:10
![Page 11: Java presention Inheritance present By Showrov Ahamed](https://reader035.fdocuments.us/reader035/viewer/2022062218/58f9ad13760da3da068b94a9/html5/thumbnails/11.jpg)
Intermediate class Middle located class
Having Dual policy (obtain properties of upper level class and transmit properties to lower level class).
Slide:11
![Page 12: Java presention Inheritance present By Showrov Ahamed](https://reader035.fdocuments.us/reader035/viewer/2022062218/58f9ad13760da3da068b94a9/html5/thumbnails/12.jpg)
Child Class
Bottom located class much benefitted class much loaded class properties of child class as well as
class and parent class can be accessed by
only the object of child class.
Slide:12
![Page 13: Java presention Inheritance present By Showrov Ahamed](https://reader035.fdocuments.us/reader035/viewer/2022062218/58f9ad13760da3da068b94a9/html5/thumbnails/13.jpg)
TYPES of INHERITANCE
• Single Inheritance
• Multilevel Inheritance
• Hierarchical Inheritance
Slide:13
![Page 14: Java presention Inheritance present By Showrov Ahamed](https://reader035.fdocuments.us/reader035/viewer/2022062218/58f9ad13760da3da068b94a9/html5/thumbnails/14.jpg)
TYPES of INHERITANCE
• Single Inheritance
• Multilevel Inheritance
• Hierarchical Inheritance
Slide:14
![Page 15: Java presention Inheritance present By Showrov Ahamed](https://reader035.fdocuments.us/reader035/viewer/2022062218/58f9ad13760da3da068b94a9/html5/thumbnails/15.jpg)
Single Inheritance
A structure having one and only one parent as well as child class.
Child class is authorized to access the property of Parent class.
Accesssing of class
Sharing of properties
Parent Class Child Class
Slide:16
![Page 16: Java presention Inheritance present By Showrov Ahamed](https://reader035.fdocuments.us/reader035/viewer/2022062218/58f9ad13760da3da068b94a9/html5/thumbnails/16.jpg)
Multilevel Inheritance
Standard structure of Single Inheritance having one Parent, one or more intermediate and one child classes.
Child class as well as intermediate class may access the properties of upper level classes.
Intermediate Class 216
Parent Class
Child Class Intermediate Class 1
Slide:16
![Page 17: Java presention Inheritance present By Showrov Ahamed](https://reader035.fdocuments.us/reader035/viewer/2022062218/58f9ad13760da3da068b94a9/html5/thumbnails/17.jpg)
Hierarchical InheritanceSyntax :
A structure having one parent and more child class. Child classes must be connected with only Parent class
Slide:17
![Page 18: Java presention Inheritance present By Showrov Ahamed](https://reader035.fdocuments.us/reader035/viewer/2022062218/58f9ad13760da3da068b94a9/html5/thumbnails/18.jpg)
Indirect Mechanism of Inheritance
Java Supports a special feature called interface. This feature helps to connect a class with more than one classes. For this type of connectivity java uses ‘implements’ keyword.
Syntax :interface A{ ……..}Interface B { ____}class M { -------}class N implements A,B extends M{ ===== _____------…………}
Slide:18
![Page 19: Java presention Inheritance present By Showrov Ahamed](https://reader035.fdocuments.us/reader035/viewer/2022062218/58f9ad13760da3da068b94a9/html5/thumbnails/19.jpg)
LIMITATIONSLink is establish into single direction(Fig). Java not support Multiple inheritance as well as Hybrid inheritance. The extends keyword permits to connect a class with only one class. In Interface, properties are only declared and assined, but n’ver defined.
Slide:20
![Page 20: Java presention Inheritance present By Showrov Ahamed](https://reader035.fdocuments.us/reader035/viewer/2022062218/58f9ad13760da3da068b94a9/html5/thumbnails/20.jpg)
Source:Google.comLinkdin.comGithub.comYoutube.com
Slide:21
![Page 21: Java presention Inheritance present By Showrov Ahamed](https://reader035.fdocuments.us/reader035/viewer/2022062218/58f9ad13760da3da068b94a9/html5/thumbnails/21.jpg)
THANK YOU
Slide:21
![Page 22: Java presention Inheritance present By Showrov Ahamed](https://reader035.fdocuments.us/reader035/viewer/2022062218/58f9ad13760da3da068b94a9/html5/thumbnails/22.jpg)
Slide:22