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

Опубликовано: 15 Апрель 2023
на канале: 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


Смотрите видео INHERITANCE IN JAVA | EXTENDS KEYWORD | HOW TO CREATE CHILD CLASS | SOFTWARE SERVICES AND SOLUTIONS онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Software Services and Solutions 15 Апрель 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2 раз и оно понравилось людям.