Very nice explanation for use of interfaces in Java. Wish I knew this back when I used Java. Now I use C++ and interfaces are one of the main things it lacks as an object oriented language. Virtual functions work as well but I'm talking about compile time checks for function implementations which is much faster. Thanks for the video!
Harry sir please its my humble request and plz dont ignore this comment that Computer Scientist Banne par roadmap banaiye jald se se jald is par video banaiye kyonki mujhe bade hokar computer scientist banna hai plz sir is topic par video banaiye plz plz plz its my humble request you are real teacher and i am inspired by you. i cant describe your qualities in this one comment so plz computer scientist banne par roadmap banaiye
at 2:55 When java creator did not created multiple inheritance due to same method problem in parent class why other lang like python created multiple inheritance even there also can raise same method problem
Python supports multiple inheritance because it provides a powerful way to create complex class hierarchies and promotes code reuse. Multiple inheritance allows a class to inherit attributes and methods from multiple parent classes, enabling the creation of more flexible and modular code structures.
While multiple inheritance has its advantages, the decision to omit it in Java was a conscious trade-off to prioritize simplicity, readability, and avoiding certain pitfalls associated with it. By adopting single inheritance with interfaces, Java manages to provide a clean and flexible approach to class relationships while minimizing potential complications.
// Interfaces ......... Can crate properties in interfaces and Can't modify properties abstract class Yamaha{ void tyres(){ System.out.println("Yamaha has 2 tyres"); } void steering(){ System.out.println("Yamaha has 1 steering"); } abstract int chooseSpeed(int speed); } interface BikeF1{ //BikeF1 means 1st feature of Bike...folows.... void speedUp(int increment); void speedDown(int decrement); } /* interface BikeF2{ void horn1(); void horn2(); } */ interface BikeF3{ void gearUp(int increment); void geardown(int decrement); } class Fz extends Yamaha implements BikeF1, BikeF3{ public void speedUp(int increment){ System.out.println("The speedUp is "+ increment); } public void speedDown(int decrement){ System.out.println("The speedDown is " + decrement); } public void gearUp(int increment){ System.out.println("The gear should go when speed goes Up " + increment); } public void geardown(int decrement){ System.out.println("The gear should go down when speed goes Down " + decrement); } int chooseSpeed(int speed){ return speed; } } public class Interfaces{ public static void main(String [] args){ Fz myfz= new Fz(); myfz.speedUp(100); myfz.gearUp(5); myfz.speedDown(20); myfz.geardown(2); System.out.println("My Yamaha Fz speed should be " + " " + myfz.chooseSpeed(200) + "KMPH"); } } /* Output: The speedUp is 100 The gear should go when speed goes Up 5 The speedDown is 20 The gear should go down when speed goes Down 2 My Yamaha Fz speed should be 200KMPH */
Sir please make a full course on *Laravel_* ..please....do it......please....We need a full course on laravel.... Love and lot of respect for you ....from me...(Watching your videos from Bangladesh...)
Bhai aap game development and game designing se related ya python ya java language se coding karke usko android studio me bana kar sakhoo .... plzz mujhe game designing and game development seekhni hai..... by the way i am 14 years old... bhai please 🙏 iss se related video daliye
Hello brother, thankyou for giving that much of constant. I'm in 3rd sem now, I've to choose between Android development and web development, so what I should?
Interfaces are not the replacement of multiple inheritance. We can achieve multiple inheritance concept through composition in java. I think this should be the correction here.
aoa kindly help yar haary bhai ne kaha k interference me sare variables final hote ha ....pr harry bhai ne khod he interference me public variable bnaya r uski value b change ki tu ye kese kindly koi developer explain kr de...?
He, didn't change the value of the variable. He created a different variable with the same name. See he wrote public int x = 5; The datatype is only needed to be specified when creating the variable/initializing a variable. P.S. - He didn't create a variable, rather he overwrote it.
Happy Diwali Everyone!
Hope you had an amazing and safe Diwali.
I ate a lot of sweets. How was your Diwali?
Happy belated Diwali harry bhai
Happ Diwali bhai
Same to you 👍👍👍
love from nepal
Gorgeous 😍😍
For Those Who Don’t Know - Harry Bhai Is An IIT Kharagpur Graduate . Respect ! ! !
How do you know bro...?
@@sambitsinha4845 check his insta bio
i would like to ask harry that: why he did,nt go to microsoft, google or facebook
🔥🔥🔥🔥🔥
I am Stanford University Graduate ✌️
Very nice explanation for use of interfaces in Java. Wish I knew this back when I used Java. Now I use C++ and interfaces are one of the main things it lacks as an object oriented language. Virtual functions work as well but I'm talking about compile time checks for function implementations which is much faster.
Thanks for the video!
Harry bha filhal m ap ka python ka course kr rha ho...wo pora hwa to phr ye java ka course kroga bhai ap ko mjhe ek heart dena to farz binta h
10:12 How the value of property changes in class when you mentioned that the value in interfaces is final?
it can change in implement class but not in main class
Wo property ki value ko "override" kar raha hai, usse "re-assign" nahi kar raha main mei
Harry Bhai you are doing a very good job by providing free education . God bless you and may shower you with your dreams.
datttebayo
@@Abhishek7Shah bro switched teams to straw hats lmfao
@@minecrafter64899 Ab kisi aur hotttie ka pfp daaala hai 😭😭😭
Hi Harry sir, now I've reached Methods in java and I also made a copy, in which I wrote all your notes😁😘
@Anant Gupta just want to be Harry sir's no.1 student😁
Very good explanation sir .. My interest of learning java is increasing day by day
i am learning this now after 3 years still like it thanks a lot bhai...
mee too
Me puri one by one video dekh raha hu...thanks Harry
Thanx bhai you helped me to learn java 🙏🏻🙏🏻🙏🏻
Harry sir please its my humble request and plz dont ignore this comment that Computer Scientist Banne par roadmap banaiye jald se se jald is par video banaiye kyonki mujhe bade hokar computer scientist banna hai plz sir is topic par video banaiye plz plz plz its my humble request you are real teacher and i am inspired by you. i cant describe your qualities in this one comment so plz computer scientist banne par roadmap banaiye
phly bari tu ho ja bahan
Bilkul jahkaz samjh agiya Harry Bhai Thank You
Muje आपके वीडियोस बहुत पसंद आते थैंक्यू sir
You are really helping me to learn Java thank you such sir.
Happy Deepawali....🥳💫💞🙏🙏
0:59 1:08
10:13 10:19 overwrite...
I am learning java for Android development thank you bhaiya for this and also yrr Jara kam hasao ghar wale aake puchte hai konsa show dekh Rai hai
half journey of this course covered watching this java course in 2023
Android studio full harry bhai......waiting
Love you sir
And thanks for uploading such
Mindblowing project as well as tutorials
Thanks sir
Kya jabardast explanation diya hai Harry bhai!
Next Level Explanation. Hats off !!
What a beautiful explanation !!
6:15 "aisa thodi h , camera ab discontinue ho kr smartphone ban gye" is just hahahahahah🤣🤣🤣🤣
very complicated way of explaining things
Bhaiyaa please java se data structure bhi bta dena
Me aapka bahut बड़ा फैन हूं
java is going to be my first language.
java == 😍
1m subs soon because you are soo close and lot of salut to you work I have completed your python and c++ course thanks for these course ♥️♥️♥️♥️😄😄
at 2:55 When java creator did not created multiple inheritance due to same method problem in parent class why other lang like python created multiple inheritance even there also can raise same method problem
Python supports multiple inheritance because it provides a powerful way to create complex class hierarchies and promotes code reuse. Multiple inheritance allows a class to inherit attributes and methods from multiple parent classes, enabling the creation of more flexible and modular code structures.
While multiple inheritance has its advantages, the decision to omit it in Java was a conscious trade-off to prioritize simplicity, readability, and avoiding certain pitfalls associated with it. By adopting single inheritance with interfaces, Java manages to provide a clean and flexible approach to class relationships while minimizing potential complications.
bhaiya dil se aapko pyaar, mera tension dur krr diya aapne.
U r really doing a great job for needy peoples 🔥🔥🔥💯💯❤️,Keep it Upp
// Interfaces ......... Can crate properties in interfaces and Can't modify properties
abstract class Yamaha{
void tyres(){
System.out.println("Yamaha has 2 tyres");
}
void steering(){
System.out.println("Yamaha has 1 steering");
}
abstract int chooseSpeed(int speed);
}
interface BikeF1{ //BikeF1 means 1st feature of Bike...folows....
void speedUp(int increment);
void speedDown(int decrement);
}
/*
interface BikeF2{
void horn1();
void horn2();
}
*/
interface BikeF3{
void gearUp(int increment);
void geardown(int decrement);
}
class Fz extends Yamaha implements BikeF1, BikeF3{
public void speedUp(int increment){
System.out.println("The speedUp is "+ increment);
}
public void speedDown(int decrement){
System.out.println("The speedDown is " + decrement);
}
public void gearUp(int increment){
System.out.println("The gear should go when speed goes Up " + increment);
}
public void geardown(int decrement){
System.out.println("The gear should go down when speed goes Down " + decrement);
}
int chooseSpeed(int speed){
return speed;
}
}
public class Interfaces{
public static void main(String [] args){
Fz myfz= new Fz();
myfz.speedUp(100);
myfz.gearUp(5);
myfz.speedDown(20);
myfz.geardown(2);
System.out.println("My Yamaha Fz speed should be " + " " + myfz.chooseSpeed(200) + "KMPH");
}
}
/*
Output:
The speedUp is 100
The gear should go when speed goes Up 5
The speedDown is 20
The gear should go down when speed goes Down 2
My Yamaha Fz speed should be 200KMPH
*/
thank you harry bhai for the grat work ,am learning these formy placements.may god bless you
Harry bhai kya hm Java me ek integer expression input nahi karwa sakte ha just like this (1+2*3/4}
Harry brother how do you edit videos
Because your video is very good
Bhai bahut jaldi aapke 1M subscriber ho jayene .
🔥🔥❤️❤️❤️❤️❤️
Nice video sir
Sir.. will you make videos on MySQL?
Bhai ke one million deseve karte hai bhai ko sare support karo sare
Mst video bhai
Very Nice Explaination
Best example bro.
Thanks a lot!!!
Sir please make a full course on *Laravel_* ..please....do it......please....We need a full course on laravel.... Love and lot of respect for you ....from me...(Watching your videos from Bangladesh...)
Bhai please React ka course layiye
Harry bhai GUI app kis tarah bna skte hain java main
You are a great
Bhaiya mere syllabus me jdbc bhi hai ki java program ko kaise add kre website ke sath ya html ke sath ushko bhi explain kariye na🙏🏻🙏🏻🙏🏻🙏🏻
amazing video harry bhai
amazing explanation thank u so much.
Thanks Harry Bhaiya
hi bro
you have made aosm web D course
Bhai aap game development and game designing se related ya python ya java language se coding karke usko android studio me bana kar sakhoo .... plzz mujhe game designing and game development seekhni hai..... by the way i am 14 years old... bhai please 🙏 iss se related video daliye
Gotchu sir💖💖💝
Happy diwali harry Bhai
C# course please sir
Waiting from 3 months
Please make sir
It's a humble request....
Sir javafx ke videos kab tk ayenge?
how did he change the int x value?? isn't it final be default and can't be changed??
Even I am having the same doubt
Best explanation bhai
Thank you! Liked
HAPPY TEACHER's DAY ♥♥♥
Very good sir
sir in my python application there is no option to run python coad
sir do some thing
I will try to solve You can msg me if you like on Instagram @decodedpython
@@aadarsh_chaurasia sir I don't use Instagram
@@krishnarajput1499 so any other way to contact???
Happy diwali Harry bhai
Apni ki bangali?🤔
Legend Harry Bhai🥰
great Harry bhai
maan gaye guru ~ May 13,2k21 (1:47 am)
Please bring kivy tutorials
Consider two inheritances, consists same named method inside both the inheritance. What happens when a class implements both of this inheritance?
Ye code kaha se milega Harry bhai ?
Hello brother, thankyou for giving that much of constant. I'm in 3rd sem now, I've to choose between Android development and web development, so what I should?
Sir make a video series on Microsoft Azure
Harry sir... Bootstrap 5 ka bhu tutorial bna dijiye full in one video please
Please bhai, ek video unity ka
Interfaces are not the replacement of multiple inheritance. We can achieve multiple inheritance concept through composition in java. I think this should be the correction here.
Bro make a video on game development roadmap
Thank you Harry Sir...
Anyone please tell me is JDBC included in this course?? please anyone answer
no
From where who are learning jdbc and other things bro
aoa kindly help yar haary bhai ne kaha k interference me sare variables final hote ha ....pr harry bhai ne khod he interference me public variable bnaya r uski value b change ki tu ye kese kindly koi developer explain kr de...?
He, didn't change the value of the variable. He created a different variable with the same name.
See he wrote
public int x = 5;
The datatype is only needed to be specified when creating the variable/initializing a variable.
P.S. - He didn't create a variable, rather he overwrote it.
Happy Diwali Harry bhai
Pls make a video on roadmap to get selected in Google Summer of Code GSoC
Present sir 👌🏻❤👌🏻❤👌🏻❤❤👌🏻👌🏻❤👌🏻❤
Ch 10 ka notes nahin dala hai
Not able to download notes from the link. Can someone please provide another link.where the notes can be found. @CodeWithHarry
Good morning
Sar aapane abhi tak kitne app banae Hain aur kitne chal rahe hain reply please
Sir Yeh spy website work kaise karte hhh and inko banaya kaise jata hai
harry bhai aapne toh DSA ki series ko aage upload karna hi band kar diya
Diamond problem is also one of the reason for why multiple inheritance is not supported in java for classes.
App devlopment course lao sir.. full
Harry bhai👏👏
Sir an interface can implement another interface
Osm sir💗💗💗💗
Inheritance se notes nahi hai description mei ?
Bhai please 🙏 bato ko abhi kitni vedio ha or 😢java ki please ma abhi recursion tak he pucha hu
sir, can you please give us the tutorial for telegram bots in python
Notes ka link kaha hai?
Can you help me to add a adsense in my php website or nodejs website
Thank you harry bhai
Solution of online library pls...
Thank u sir 🙏💕