1.3 Inheritance in Java - Part 1-OOPS concept|Types of Inheritance| imp points| diagrams| examples

Channel:
Subscribers:
2,180
Published on ● Video Link: https://www.youtube.com/watch?v=vN98VTIfgX8



Duration: 13:12
222 views
9


1.OOPS Concept - What is Inheritance using java with example simple program
Types of Inheritance - Single,Multilevel,Hierarchical,Multiple - extends keyword
1.3 Inheritance in JAVA Part 1 - Third Video of Core Java Series
Videos:
Part 1 : Overview of Inheritance and types of inheritance with simple diagrams.
Part 2 : Coding examples on types of inheritance using eclipse.
Part 3 : Why Multiple Inheritance is not supported in Java and how we can tackle this problem to achieve multiple inheritance.
 
Inheritance is a mechanism that allows the class to use the states and behaviours of another class. i.e a class derives variables and methods from another class.
Derived class in inheritance is called sub class (also called derived class or child class) and the class from which it is derived is called super class (also called base class or a parent class).
A super class can have any number of sub classes in inheritance but sub class can only extend one super class.
Inheritance achieved by deriving a new class from existing class using extends keyword. Example: class Child extends Parent.
In Inheritance by default all data members and member functions of a parent class are available to child class if they are not private.
Types of Inheritance:
1.Single Inheritance : In Single inheritance one class is derived from one parent class.
2.Multilevel Inheritance : In multilevel inheritance there is a concept of grand parent class.
3.Hierarchical Inheritance : In Hierarchical inheritance more than one sub classes is derived from a single parent class.
4.Multiple Inheritance : One derived class try to extend more than one parent class.
Importance Of Inheritance:
Re-usability of code: It is one of the important feature of inheritance. It is a good way to reuse the already existing code rather than creating the same code again and again. This feature not only saves time and money as we are reusing the properties but it also increase reliability of code.
Method Overriding: With the help of inheritance, it is possible to override the methods of base class so that base class method is easily used in derived class.




Other Videos By Prince Harsha


2019-04-113.2 what are static variables in java - part 2 -class variables-declare-initialize -memory efficient
2019-04-103.1 what are variables in java-part 1-local variable|static variable|instance variable
2019-04-082.1 what is constructor in java- Part 1- Rules, Need of constructor with example
2019-04-082.Features of java - java buzzwords - What are features of java with examples
2019-04-071.4 what is Method Overriding in Java -Part 3-OOPS concept-dynamic binding-early binding
2019-04-051.4 What is Method Overloading in Java -Part 2- OOPS-What is Polymorphism with example
2019-04-041.4 What is Polymorphism in Java -Part 1-OOPS concept -Types -Method Overloading, Method Overriding
2019-04-041.what is Java|introduction to java oops|applications using java|editions in java with examples
2019-04-031.3 what is multiple inheritance in Java - Part 3 -OOPS Concept|Multiple Inheritance|
2019-04-021.3 Inheritance in Java - Part 2-OOPS Concept|Types of Inheritance| imp points| diagrams| examples
2019-04-011.3 Inheritance in Java - Part 1-OOPS concept|Types of Inheritance| imp points| diagrams| examples
2019-03-311.2 what is encapsulation in java -OOPS Concept with example
2019-03-30hearthstone priest deck luck and fate matters alot
2019-03-301.1 what is abstraction in java - OOPS Concept|abstract class in java|interface with example
2019-03-29Hearthstone TOP TIER 1 LEGEND BEAST HUNTER IN 2019
2019-03-28Hearthstone:Best Pirate Aggro(RUSH) + Control Mecha'thun(OTK) = Victory (OP) Deck
2019-03-28Awesomeness of jellyfish



Tags:
java
java tutorial for beginners
Tech with Prince Harsha
java tutorials
oops
oops concept
oops concept in java
java tutorials for beginners
java tutorial
learn java
tutorial
constructor in java
method overloading
method overriding
inheritance
polymorphism
encapsulation
abstraction
this
super
keyword
java interview
abstract class
interface
strings
arrays
java collections
exceptional handling
set
map
arraylist
hashmap
string programs
array programs
exceptions
hash