Inheritance in Java

preview_player
Показать описание
In this video we will see how inheritance works in java and how to use extends keyword in java to create subclasses from super classes.
Notes will be made available at the end of the chapter.

Best Hindi Videos For Learning Programming:

►C Language Complete Course In Hindi -

►JavaScript Complete Course In Hindi -

►Django Complete Course In Hindi -

Follow Me On Social Media
Рекомендации по теме
Комментарии
Автор

Kis kisne kitne videos dekh liye is course ke?
Waise course poora complete hoga! Dont worry 😊✌

CodeWithHarry
Автор

Bhai rukna mat, duniya bolti rahegi ! You are helping a lot of students....

satyamtarika
Автор

Worlds best Java course from the universe’s best coding teacher

abheygupta
Автор

I am a student and i am financially weak and thank you so much for supporting like us students from these incredible java concepts videos that make us incremented in knowledge. Thank You!

GameAnimeFusion
Автор

Don't worry, you are doing great work already! You are helping a lot of students

playeratpost
Автор

You are a great teacher watching your courses.... One by one...!You are so hardworking.😊Thank you so mch 🤘🏻😊

anirudhkhandelwal
Автор

13:30 Yes we can use 'getY' and 'setY' in derived class as the derived class contains both X as well as Y

vishwasbist
Автор

Harry sir ignore all those negative comments we are with you. If there are any delays no problem take breaks it is important for your mental and physical health. thank you so much for teaching us everything so clearly and in-depth we will always support you. I am an ECE student but I am learning coding from you I already completed the frontend of your course and made many websites now I am learning java from you thank you for teaching us.

karthikchandra
Автор

This is the best playlist available to learn java and the most impressive fact is he enjoys making these videos. i have purchased java books but it seems as if my knowledge is complete without these videos. i fell in love with learning java, thanks Harry and wish you lots of success.

sandipkumar
Автор

i am very late to lear java according to your videos, but if you are reading this comment then i waana thank you harry sir, you are lelping a lot of youths finantially by posting these amazing videos free on yt so great respect to you sir.

atharvamahulkar
Автор

I am following you for the last year and you are my first programming teacher harry Bhai. You are doing so great leave the negative views of peoples they use to do it.

appschoolss
Автор

Harry bhai please aap rukna you are helping lots of students jinhe college mai yeh topics smjh nii aate to ek aap hi last hope ho meri toh mai chahta hu mujhe saare topic sirf aapse seekhne ko mile sirf aur kisi ki videos se zyda aapki videos se seekhne milta h mujhe you are best teacher i think in the world jo inne simple way mai sb kuch sikha deta ho.
Love you alot❤️

makeoutloud
Автор

Sir first of all you are a great teacher...Though I am a student of circuit branch, never felt that this videos are more understandable for non-circuit branches. All of your courses are far more better than those paid courses. What ever I have learned about coding that's from you. My support will be always with you...Thank you so much sir

sayanroy
Автор

I tried several channel to learn java and start my programming journey but you gave the easiest explanation of every concept.Thankyou so much
H.W
using getter and setter:
class animal{
String speak;

public String getSpeak() {
return speak;
}

public void setSpeak(String speak) {
this.speak = speak;
}
}

class Dog extends animal{
String bark;

public String getBark() {
return bark;
}

public void setBark(String bark) {
this.bark = bark;
}
}

public class Inheritance {
public static void main(String[] args) {
//extend class dog with animal
Dog m = new Dog();
m.setBark("i am a dog");

m.setSpeak("i am a cat ");

//without extend class animal
animal n = new animal();
n.setSpeak("i am a cat");

}
}


using methods:
class animal1 {
public void walking() {
System.out.println("Animal can walk");
}

public void eat() {
System.out.println("Animal can eat");
}

}
class Dog1 extends animal1 {
public void bark() {
System.out.println("Dog can bark");
}
}


public class Inheritance1 {
public static void main(String[] args) {
animal1 m = new animal1();
m.walking();
m.eat();
// m.bark(); will throw an error because m.eat() is not present in class animal
Dog1 d = new Dog1();
d.bark();
d.walking();
d.eat();
}
}

arnabchoudhury
Автор

13:20
Yes sir we can use sety and gety in derived because y is present in derived

khizrshaikh
Автор

Harry you are the best please logon ki mat suno UN Ka kaam he bolnaa h ap ki wajah SE mujhe java ayi hai ❤

nadiazahid
Автор

Bhaiya aapko humara full support hain! App kitna mehnat karke ye sab banate ho. If you want some rest you can obviously take it. you deserve it. You helped us a lot. Dil se shukria

reehansarmah
Автор

Best coding channel on YouTube

Respect++++

chaitanyjanmale
Автор

13:30 yes we can use 'Y' because we can access the properties of parent class in child class as well as we can add additional feature in it...

vishalpatil-uxem
Автор

ive been watching this since start and I have learnt alot and m currently doing java in my colg and they dnt teach as well as u do, Please continue to post java videos, I am following ur playlist.

zutube