Java interface interfaces tutorial explained example #Java #interface #tutorial
Жүктеу.....
Пікірлер: 237
@BroCodez3 жыл бұрын
//********************************************** public class Main { public static void main(String[] args) { Fish fish = new Fish(); fish.hunt(); fish.flee(); } } //********************************************** public interface Prey { void flee(); } //********************************************** public interface Predator { void hunt(); } //********************************************** public class Rabbit implements Prey{ @Override public void flee() { System.out.println("*The rabbit is fleeing*"); } } //********************************************** public class Hawk implements Predator{ @Override public void hunt() { System.out.println("*The hawk is hunting*"); } } //********************************************** public class Fish implements Prey,Predator{ @Override public void hunt() { System.out.println("*The fish is hunting*"); } @Override public void flee() { System.out.println("*The fish is fleeing*"); } } //**********************************************
@janmail80183 жыл бұрын
Every time you have not understood something at university, our bro is there for us!
@agrajyadav2951
Жыл бұрын
u study this in uni, this is taught in high school here
@kuber5241
Жыл бұрын
@@agrajyadav2951damn bro, but atleast your getting early exposure in this programing language
@bunjrsima4151
Жыл бұрын
Indeed!
@Gupatik
5 ай бұрын
@@agrajyadav2951in high school I studied c language and c++ and now this at uni. but where are you living tho??
@Sofia-rg3er
4 ай бұрын
agree
@osiaosienka71833 жыл бұрын
i spent last few hours trying to understand what interface is an it took you less than 8 mins to explain it perfectly.. you're awesome
@youvegotmail9385 Жыл бұрын
I absolutely love this guy's teaching style. I especially love that he has pseudo-code up so we know exactly what we are working with.
@hgatl3 жыл бұрын
It is really understandable and he is telling clearly ,thank you bro
@thegreenroom5820 Жыл бұрын
Nice, understanding the relationship between predator and prey brought another layer of clarity. I have been existing without interfaces.
@Iwearcute6 ай бұрын
Very thorough and professional! This guy created the classes and interfaces thren wrote the code right there, whereass our Uni professor copies the code from existing projects and files and pastes it without going through all of the steps with explainations.
@zc75043 жыл бұрын
this channel is so underrated
@faris.m172 жыл бұрын
For anyone without a Java IDE, to create a new interface, just make a new java file and put 'public interface ' and its the same thing.
@Reymax164
4 ай бұрын
Works even in the same java file… without the "public" …because you do that so that other .java files can access it.
@peiko97672 жыл бұрын
This is really helpful , thank you for helping me to understand JAVA better ^^ Keep up the great work!!
@bratan_rust2 жыл бұрын
I am from Germany but it is the first clear english description which I understand and it is better as the other german description about Interfaces .. thumbs up for you and I will check your other videos, if I will learn more about Java .. thank you
@ramziosta3 жыл бұрын
Bro, you got the best tutorials! hopefully to see an AWS tutorial
@Garrison862 жыл бұрын
Thanks for the explanation 👍super easy to understand
@hesham47442 жыл бұрын
i love the way you simplify subjects ,keep it up bro
@abdulsamadh6318 Жыл бұрын
Lovely explanation, straight to the point!
@Andboldquates2 жыл бұрын
simple, clean, understandable, thanks thumbs up
@omardumet1203 жыл бұрын
THE BEST IN KZread
@BroCodez
3 жыл бұрын
thanks Omar! I'll try my best to have this channel live up to that title
@kippenvogelchen97173 жыл бұрын
Thanks! Very good explained!
@alirezatahmasebi2920 Жыл бұрын
Bro! That’s amazing! Keep it up
@nahimgood18338 ай бұрын
Big thanks, teacher took 2 hours to try to explain this but you made it understandable.
@anmjubaer Жыл бұрын
Wow. Easy to follow and understandable. Thanks.
@chilledxaura5 ай бұрын
So much simpler to understand than whatever I was learning. And I can already see how this is useful in more advanced applications
@evryon18102 жыл бұрын
This is AWESOME, ty youre literally teaching me everything
@PhillyGodschild7 ай бұрын
Thanks, for this video it has helped me to understand more about interfaces and also learn about what I missed in class today 😊🥰
@alexshepel55993 жыл бұрын
Awesome, bro!
@jilllin9776 Жыл бұрын
Every time when I am stuck in JAVA, Bro code always saves me from there. Thank you, Bro!!
@user-do1rw6hx4j10 ай бұрын
Thank you for your clear explaination!
@amircc72972 жыл бұрын
Very informative, thanks.
@cdjosh35683 жыл бұрын
Good Vid Bro, I have a question. What would you recommend I do so that I really internalize all these vids and don't forget the material I've learned? Also my opinion: I fee like the interface is only useful if you need to inherit multiple things.
@BroCodez
3 жыл бұрын
good question! Try and code something you might find useful for yourself to reinforce the concepts. For example, I play a lot of D&D so I have dice roller programs, character creators, and map builders that I make for practice
@kim11743 ай бұрын
That was Awesome lecture! thx Bro!😄
@victorejiofor81152 жыл бұрын
Thanks so much, Bro Code you made this easy to understand. Now I understand what interfaces are.
@anjamisimovic92142 жыл бұрын
this is so loud and clear! tnx
@anupamsinha74302 жыл бұрын
Bro Code, thank you so much for this. When possible, can you make a 'Design Pattern' playlist please?
@pavelkvasnicka6856 Жыл бұрын
This is the best Java tutorial for beginners, so you can learn Java and English in one hit. Please keep going! I vote for Java advance tutorial. Thanks a lot Bro
@danny.30363 жыл бұрын
Thanks, Bro! ☕ You're awesome!
@abdimegersa77802 жыл бұрын
You're the best
@user-ie6kl8gl6j5 ай бұрын
Bro u r sooo good!
@leruleru87232 жыл бұрын
you're a LIFESAVER bro
@albertoam2 Жыл бұрын
Thanks, I always look at your videos, they are very easy to understand
@juanestebanparraparra63022 жыл бұрын
Thanks for your tutorials bro!
@yevgenomelchenko732 Жыл бұрын
Thanks, very helpfull!
@augustinejoseph4302 Жыл бұрын
Clear and crisp👍👍👍
@leonelenriquecontreras7860 Жыл бұрын
Great video! thanks for the help bro! keep up the good work :)
@rachpalsingh34982 жыл бұрын
crisp and clear. Thanks.
@immortlreacts1740 Жыл бұрын
best explanation i've heard... saved me
@hytalefanboi74712 жыл бұрын
Good video
@aliak29872 жыл бұрын
You are amazing bro ❤
@damithajayawardana75682 жыл бұрын
Yeah bro that's awesome thanks
@helenaa13045 ай бұрын
been using your videos to review for my midterm, you've been a big help this semester. thanks, bro :))
@r4nd0m2512 күн бұрын
you are awesome dude
@unalysuf Жыл бұрын
Thank you so much for your effort
@user-eo6sv1gs7p2 ай бұрын
Ilove Your Tutorial
@nikitamarkovski71212 жыл бұрын
Thanks, much clearer than on previous guy's channel lol
@romandevera78712 жыл бұрын
Good job Bro!
@shouvikxiv6 ай бұрын
thanks man.. super helpful
@minhtetpaing16953 жыл бұрын
Thank you so much sir.
@alcachofa23942 ай бұрын
thanks for the explanation bro
@wallstreetbets77412 жыл бұрын
Cool man but I need rewatch it later
@reparatiicalculatoare5022 жыл бұрын
Genial!
@NeuronCode Жыл бұрын
I'm from Brazil, thanks for the video bro! ❤
@user-kn1mo7ls7r2 жыл бұрын
תודה לך יהודי יקר וכשר
@noahgsolomon2 жыл бұрын
Common bro W
@user-vq1yi9lj3f7 ай бұрын
You is the real bro❤❤
@noelchacko3 жыл бұрын
Beautiful video
@astamoon1505 Жыл бұрын
Love you bro
@abdialemu8391 Жыл бұрын
great!!!
@user-rg6gy8yl2oАй бұрын
Thank you really helped
@user-kn8jr5uy9u9 ай бұрын
Here, I become a Fellow Bro!
@Bro-ci9lq2 жыл бұрын
ay yo thata was much help bro thank u :D
@RSKEDITS Жыл бұрын
great explanation
@user-zq6yx7of5f Жыл бұрын
Thank you very much !
@apex-lazer Жыл бұрын
brooooo! Thank youuu!! soo much. 👊
@xXMaDGaMeR2 жыл бұрын
love you bro
@_Anna_Nass_2 жыл бұрын
I’ve officially nominated you as my Java professor
@darkfury30323 жыл бұрын
most underrated tutorial
@manchester2504 ай бұрын
Thank you!
@laylachisom8996 Жыл бұрын
Thanks for this gem
@rohanl.r76737 ай бұрын
You are the universal java bro
@rinadem5219 Жыл бұрын
super nice thanks
@rblahunka Жыл бұрын
Thank you, thank you, thank you!!
@augischadiegils.51093 жыл бұрын
Thanksss bro!!
@TheEvertonDias Жыл бұрын
Thanks, Bro!
@emilakhmedov25532 жыл бұрын
East or West Bro is the best!
@leilakardan5503 Жыл бұрын
Tanks it was perfect
@cherryb9128 Жыл бұрын
thank you so much bro!!!
@sharalnaja94373 жыл бұрын
please keep up the good work i literally straight coming to ur videos for my IT education next time, could u do more of a project tutorial, maybe making a simple game something? that would be great also thank u very much!
@BroCodez
3 жыл бұрын
thanks Shar! I have a few games near the end of the full play list if you're interested: kzread.info/dash/bejne/c2eep5KAeNO4mdY.html
@leticiapaes374511 ай бұрын
loved it
@IDK-kv8ob10 ай бұрын
Bro these videos have helped me immensely. This sh!t is so overwhelming.
@pa-3053 жыл бұрын
best brooo
@ucquangle7496 Жыл бұрын
good!
@climborre72162 жыл бұрын
realy good video thanks
@huuloc87192 жыл бұрын
Nice.
@lucnahounou10 ай бұрын
Thanks !
@mohamedelfadli3125 Жыл бұрын
Totaly understood.
@jcs09843 ай бұрын
I'm literally in a Java 2 class and they explained interfaces like **** and you just explained it so easy, idk wtf I go to class for
@arthur_p_dent42822 жыл бұрын
Taking Tim Buchalka’s Udemy course. And as much as I am loving it, if there’s ever a time I need something clarified, my bro’s always got my back.
@prxnv
Жыл бұрын
yeah tim got lazy section 10 to 12 it seems, didnt rly explain stuff that well. other than that, excellent course
@lorebas129 ай бұрын
love u;
@kemann38152 жыл бұрын
Big thanks ❤
@rewrose28383 жыл бұрын
Bro I gotta ask something, are comparable interfaces necessary? (can we not just use a switch case?)
Пікірлер: 237
//********************************************** public class Main { public static void main(String[] args) { Fish fish = new Fish(); fish.hunt(); fish.flee(); } } //********************************************** public interface Prey { void flee(); } //********************************************** public interface Predator { void hunt(); } //********************************************** public class Rabbit implements Prey{ @Override public void flee() { System.out.println("*The rabbit is fleeing*"); } } //********************************************** public class Hawk implements Predator{ @Override public void hunt() { System.out.println("*The hawk is hunting*"); } } //********************************************** public class Fish implements Prey,Predator{ @Override public void hunt() { System.out.println("*The fish is hunting*"); } @Override public void flee() { System.out.println("*The fish is fleeing*"); } } //**********************************************
Every time you have not understood something at university, our bro is there for us!
@agrajyadav2951
Жыл бұрын
u study this in uni, this is taught in high school here
@kuber5241
Жыл бұрын
@@agrajyadav2951damn bro, but atleast your getting early exposure in this programing language
@bunjrsima4151
Жыл бұрын
Indeed!
@Gupatik
5 ай бұрын
@@agrajyadav2951in high school I studied c language and c++ and now this at uni. but where are you living tho??
@Sofia-rg3er
4 ай бұрын
agree
i spent last few hours trying to understand what interface is an it took you less than 8 mins to explain it perfectly.. you're awesome
I absolutely love this guy's teaching style. I especially love that he has pseudo-code up so we know exactly what we are working with.
It is really understandable and he is telling clearly ,thank you bro
Nice, understanding the relationship between predator and prey brought another layer of clarity. I have been existing without interfaces.
Very thorough and professional! This guy created the classes and interfaces thren wrote the code right there, whereass our Uni professor copies the code from existing projects and files and pastes it without going through all of the steps with explainations.
this channel is so underrated
For anyone without a Java IDE, to create a new interface, just make a new java file and put 'public interface ' and its the same thing.
@Reymax164
4 ай бұрын
Works even in the same java file… without the "public" …because you do that so that other .java files can access it.
This is really helpful , thank you for helping me to understand JAVA better ^^ Keep up the great work!!
I am from Germany but it is the first clear english description which I understand and it is better as the other german description about Interfaces .. thumbs up for you and I will check your other videos, if I will learn more about Java .. thank you
Bro, you got the best tutorials! hopefully to see an AWS tutorial
Thanks for the explanation 👍super easy to understand
i love the way you simplify subjects ,keep it up bro
Lovely explanation, straight to the point!
simple, clean, understandable, thanks thumbs up
THE BEST IN KZread
@BroCodez
3 жыл бұрын
thanks Omar! I'll try my best to have this channel live up to that title
Thanks! Very good explained!
Bro! That’s amazing! Keep it up
Big thanks, teacher took 2 hours to try to explain this but you made it understandable.
Wow. Easy to follow and understandable. Thanks.
So much simpler to understand than whatever I was learning. And I can already see how this is useful in more advanced applications
This is AWESOME, ty youre literally teaching me everything
Thanks, for this video it has helped me to understand more about interfaces and also learn about what I missed in class today 😊🥰
Awesome, bro!
Every time when I am stuck in JAVA, Bro code always saves me from there. Thank you, Bro!!
Thank you for your clear explaination!
Very informative, thanks.
Good Vid Bro, I have a question. What would you recommend I do so that I really internalize all these vids and don't forget the material I've learned? Also my opinion: I fee like the interface is only useful if you need to inherit multiple things.
@BroCodez
3 жыл бұрын
good question! Try and code something you might find useful for yourself to reinforce the concepts. For example, I play a lot of D&D so I have dice roller programs, character creators, and map builders that I make for practice
That was Awesome lecture! thx Bro!😄
Thanks so much, Bro Code you made this easy to understand. Now I understand what interfaces are.
this is so loud and clear! tnx
Bro Code, thank you so much for this. When possible, can you make a 'Design Pattern' playlist please?
This is the best Java tutorial for beginners, so you can learn Java and English in one hit. Please keep going! I vote for Java advance tutorial. Thanks a lot Bro
Thanks, Bro! ☕ You're awesome!
You're the best
Bro u r sooo good!
you're a LIFESAVER bro
Thanks, I always look at your videos, they are very easy to understand
Thanks for your tutorials bro!
Thanks, very helpfull!
Clear and crisp👍👍👍
Great video! thanks for the help bro! keep up the good work :)
crisp and clear. Thanks.
best explanation i've heard... saved me
Good video
You are amazing bro ❤
Yeah bro that's awesome thanks
been using your videos to review for my midterm, you've been a big help this semester. thanks, bro :))
you are awesome dude
Thank you so much for your effort
Ilove Your Tutorial
Thanks, much clearer than on previous guy's channel lol
Good job Bro!
thanks man.. super helpful
Thank you so much sir.
thanks for the explanation bro
Cool man but I need rewatch it later
Genial!
I'm from Brazil, thanks for the video bro! ❤
תודה לך יהודי יקר וכשר
Common bro W
You is the real bro❤❤
Beautiful video
Love you bro
great!!!
Thank you really helped
Here, I become a Fellow Bro!
ay yo thata was much help bro thank u :D
great explanation
Thank you very much !
brooooo! Thank youuu!! soo much. 👊
love you bro
I’ve officially nominated you as my Java professor
most underrated tutorial
Thank you!
Thanks for this gem
You are the universal java bro
super nice thanks
Thank you, thank you, thank you!!
Thanksss bro!!
Thanks, Bro!
East or West Bro is the best!
Tanks it was perfect
thank you so much bro!!!
please keep up the good work i literally straight coming to ur videos for my IT education next time, could u do more of a project tutorial, maybe making a simple game something? that would be great also thank u very much!
@BroCodez
3 жыл бұрын
thanks Shar! I have a few games near the end of the full play list if you're interested: kzread.info/dash/bejne/c2eep5KAeNO4mdY.html
loved it
Bro these videos have helped me immensely. This sh!t is so overwhelming.
best brooo
good!
realy good video thanks
Nice.
Thanks !
Totaly understood.
I'm literally in a Java 2 class and they explained interfaces like **** and you just explained it so easy, idk wtf I go to class for
Taking Tim Buchalka’s Udemy course. And as much as I am loving it, if there’s ever a time I need something clarified, my bro’s always got my back.
@prxnv
Жыл бұрын
yeah tim got lazy section 10 to 12 it seems, didnt rly explain stuff that well. other than that, excellent course
love u;
Big thanks ❤
Bro I gotta ask something, are comparable interfaces necessary? (can we not just use a switch case?)
Thankyou !