INHERITANCE IN JAVA | EXTENDS KEYWORD | HOW TO CREATE CHILD CLASS | SOFTWARE SERVICES AND SOLUTIONS

Published: 15 April 2023
on channel: Software Services and Solutions
29
4

Hello

In this video we will learn the basic concept of Inheritance
What is Inheritance?
How inheritance is implemented in JAVA?
How do we create child class in JAVA?
Advantages of Inheritance
Limitations in Inheritance

1. Inheritance is a feature of object oriented programming in which a (new) class can get the variables and functions of existing class by establishing a parent child relationship.
2. The child class is declared with the keyword extends followed by parent class name
For example
class c2 extends C1
{

}
Here C2 is the child class and C1 is parent class
3. a) Inheritance helps in reusability of code. Functions once written can be accessed whenever required.
b) Software Development becomes easier as new version can inherits the features of the previous version.

4. Private members of a class are not inherited to the child class.

For more information contact Dr Aamir Junaid Ahmad at 9939802016

#collegestudents #java #javaprogramming #javaprogrammer #fullstack #fullstackdevelopers #javatutorial #javainstitute #javabasics #javainterviewquestions


Watch video INHERITANCE IN JAVA | EXTENDS KEYWORD | HOW TO CREATE CHILD CLASS | SOFTWARE SERVICES AND SOLUTIONS online without registration, duration hours minute second in high quality. This video was added by user Software Services and Solutions 15 April 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2 once and liked it people.