Java interface 🦅

  Рет қаралды 210,587

Bro Code

Bro Code

Күн бұрын

Пікірлер
@BroCodez
@BroCodez 4 жыл бұрын
//********************************************** 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*"); } } //**********************************************
@janmail8018
@janmail8018 4 жыл бұрын
Every time you have not understood something at university, our bro is there for us!
@agrajyadav2951
@agrajyadav2951 Жыл бұрын
u study this in uni, this is taught in high school here
@kuber5241
@kuber5241 Жыл бұрын
​@@agrajyadav2951damn bro, but atleast your getting early exposure in this programing language
@bunjrsima4151
@bunjrsima4151 Жыл бұрын
Indeed!
@Gupatik
@Gupatik 9 ай бұрын
@@agrajyadav2951in high school I studied c language and c++ and now this at uni. but where are you living tho??
@Sofia-rg3er
@Sofia-rg3er 8 ай бұрын
agree
@osiaosienka7183
@osiaosienka7183 3 жыл бұрын
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
@retardbuster1498
@retardbuster1498 Ай бұрын
Maybe bcs there's not much point in trying to understand what the interface is as a beginner, just have to know how it is used
@youvegotmail9385
@youvegotmail9385 2 жыл бұрын
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.
@iwearcute
@iwearcute 10 ай бұрын
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.
@faris.m17
@faris.m17 2 жыл бұрын
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
@Reymax164 8 ай бұрын
Works even in the same java file… without the "public" …because you do that so that other .java files can access it.
@hgatl
@hgatl 4 жыл бұрын
It is really understandable and he is telling clearly ,thank you bro
@thegreenroom5820
@thegreenroom5820 2 жыл бұрын
Nice, understanding the relationship between predator and prey brought another layer of clarity. I have been existing without interfaces.
@colesimpson8188
@colesimpson8188 2 ай бұрын
My brain is fried. I will likely never hear the word Hawk the same again
@tejirie.9861
@tejirie.9861 Ай бұрын
You're hearing weird things when you hear hawk too, eh?
@mahitharachchi4116
@mahitharachchi4116 Ай бұрын
same here lol
@Tarantula.8eyes
@Tarantula.8eyes 26 күн бұрын
tuah!
@bestielwuca4677
@bestielwuca4677 19 күн бұрын
@@tejirie.9861 say that again
@Overseer01
@Overseer01 18 күн бұрын
@@bestielwuca4677 hawk.tuah()
@omardumet120
@omardumet120 4 жыл бұрын
THE BEST IN KZbin
@BroCodez
@BroCodez 4 жыл бұрын
thanks Omar! I'll try my best to have this channel live up to that title
@zc7504
@zc7504 3 жыл бұрын
this channel is so underrated
@bratan_rust
@bratan_rust 2 жыл бұрын
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
@nahimgood1833
@nahimgood1833 Жыл бұрын
Big thanks, teacher took 2 hours to try to explain this but you made it understandable.
@PhillyGodschild
@PhillyGodschild Жыл бұрын
Thanks, for this video it has helped me to understand more about interfaces and also learn about what I missed in class today 😊🥰
@chilledxaura
@chilledxaura 9 ай бұрын
So much simpler to understand than whatever I was learning. And I can already see how this is useful in more advanced applications
@peiko9767
@peiko9767 2 жыл бұрын
This is really helpful , thank you for helping me to understand JAVA better ^^ Keep up the great work!!
@jilllin9776
@jilllin9776 2 жыл бұрын
Every time when I am stuck in JAVA, Bro code always saves me from there. Thank you, Bro!!
@francischileshe8615
@francischileshe8615 2 ай бұрын
The hawk is tuahing
@ramziosta
@ramziosta 3 жыл бұрын
Bro, you got the best tutorials! hopefully to see an AWS tutorial
@cdjosh3568
@cdjosh3568 4 жыл бұрын
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
@BroCodez 4 жыл бұрын
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
@Garrison86
@Garrison86 2 жыл бұрын
Thanks for the explanation 👍super easy to understand
@tenhociencia9466
@tenhociencia9466 Ай бұрын
Your videos are awesome, I understand you better than numerous classes in my college
@StevenRafael268
@StevenRafael268 2 ай бұрын
this actually helped me out so much, thank you! i tried learning these concepts in my class but it got all jumbled and buried under all this jargen, but this is so simple and easy to understand, thanks! :)
@wyattpearce
@wyattpearce Ай бұрын
Such a great video man, perfectly simple thanks
@rishiandrian-roblox3601
@rishiandrian-roblox3601 4 ай бұрын
he is a really good teacher, i appreciate your effort bro.
@anjamisimovic9214
@anjamisimovic9214 3 жыл бұрын
this is so loud and clear! tnx
@Andboldquates
@Andboldquates 2 жыл бұрын
simple, clean, understandable, thanks thumbs up
@helenaa1304
@helenaa1304 9 ай бұрын
been using your videos to review for my midterm, you've been a big help this semester. thanks, bro :))
@dianamilenaarchilacordoba4632
@dianamilenaarchilacordoba4632 2 ай бұрын
great video!!! I'm infinitely grateful for your dedication and big heart to share this knowledge with the world. Thank you soo much
@marci8746
@marci8746 9 ай бұрын
Is there an actual reason to use interfaces other than declaring what a class must do? I just feel like it has no other reasons because you only inherant the function name but still have to declare what it does for each individual class.
@alirezatahmasebi2920
@alirezatahmasebi2920 Жыл бұрын
Bro! That’s amazing! Keep it up
@pavelkvasnicka6856
@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
@hesham4744
@hesham4744 2 жыл бұрын
i love the way you simplify subjects ,keep it up bro
@abdimegersa7780
@abdimegersa7780 2 жыл бұрын
You're the best
@albertoam2
@albertoam2 Жыл бұрын
Thanks, I always look at your videos, they are very easy to understand
@Varshith24
@Varshith24 2 ай бұрын
The Hawk is tuahing
@EdgeLordOmen
@EdgeLordOmen 4 ай бұрын
Hawk.Tuah
@arthur_p_dent4282
@arthur_p_dent4282 3 жыл бұрын
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
@prxnv Жыл бұрын
yeah tim got lazy section 10 to 12 it seems, didnt rly explain stuff that well. other than that, excellent course
@曾毓哲-b1t
@曾毓哲-b1t Жыл бұрын
Thank you very much !
@abdulsamadh6318
@abdulsamadh6318 2 жыл бұрын
Lovely explanation, straight to the point!
@sharalnaja9437
@sharalnaja9437 4 жыл бұрын
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
@BroCodez 4 жыл бұрын
thanks Shar! I have a few games near the end of the full play list if you're interested: kzbin.info/www/bejne/d2TNdmN9fdWFn9U
@immortlreacts1740
@immortlreacts1740 Жыл бұрын
best explanation i've heard... saved me
@kim1174
@kim1174 7 ай бұрын
That was Awesome lecture! thx Bro!😄
@hytalefanboi7471
@hytalefanboi7471 3 жыл бұрын
Good video
@ניסיםאלפקס
@ניסיםאלפקס 2 жыл бұрын
תודה לך יהודי יקר וכשר
@minhtetpaing1695
@minhtetpaing1695 3 жыл бұрын
Thank you so much sir.
@阿毛-x7k
@阿毛-x7k Жыл бұрын
Thank you for your clear explaination!
@amircc7297
@amircc7297 2 жыл бұрын
Very informative, thanks.
@anmjubaer
@anmjubaer 2 жыл бұрын
Wow. Easy to follow and understandable. Thanks.
@r4nd0m25
@r4nd0m25 4 ай бұрын
you are awesome dude
@LuizGuilherme-ru6nt
@LuizGuilherme-ru6nt 26 күн бұрын
Pretty good video Bro
@_Anna_Nass_
@_Anna_Nass_ 3 жыл бұрын
I’ve officially nominated you as my Java professor
@JamesBondRJ707
@JamesBondRJ707 2 жыл бұрын
Clear and crisp👍👍👍
@evryon1810
@evryon1810 3 жыл бұрын
This is AWESOME, ty youre literally teaching me everything
@alcachofa2394
@alcachofa2394 6 ай бұрын
thanks for the explanation bro
@dunnydunn458
@dunnydunn458 5 ай бұрын
Thank you for the tutorial! Is the "@Override" necessary? What does it do?
@shanibar6886
@shanibar6886 2 ай бұрын
Great video! thanks!
@unalysuf
@unalysuf Жыл бұрын
Thank you so much for your effort
@NeuronCode
@NeuronCode Жыл бұрын
I'm from Brazil, thanks for the video bro! ❤
@jcs0984
@jcs0984 8 ай бұрын
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
@Felix_1811
@Felix_1811 21 күн бұрын
Thank you, your saving my life
@adanskiesabaria
@adanskiesabaria 6 ай бұрын
Ilove Your Tutorial
@rohanl.r7673
@rohanl.r7673 11 ай бұрын
You are the universal java bro
@climborre7216
@climborre7216 3 жыл бұрын
realy good video thanks
@SpunkyGo0se
@SpunkyGo0se 11 ай бұрын
It's crazy how teachers can be so bad at explaining simple, straightforward concepts like this.
@damithajayawardana7568
@damithajayawardana7568 3 жыл бұрын
Yeah bro that's awesome thanks
@ibrahimylmaz8378
@ibrahimylmaz8378 2 жыл бұрын
thanks bro
@leilakardan5503
@leilakardan5503 Жыл бұрын
Tanks it was perfect
@RSKEDITS
@RSKEDITS 2 жыл бұрын
great explanation
@emilakhmedov2553
@emilakhmedov2553 2 жыл бұрын
East or West Bro is the best!
@abdialemu8391
@abdialemu8391 Жыл бұрын
great!!!
@zlh0
@zlh0 4 ай бұрын
love ur shit ur a life saver fr
@JayathuShehan
@JayathuShehan Жыл бұрын
You is the real bro❤❤
@victorejiofor8115
@victorejiofor8115 2 жыл бұрын
Thanks so much, Bro Code you made this easy to understand. Now I understand what interfaces are.
@אביבמהרשק
@אביבמהרשק 5 ай бұрын
Thank you really helped
@IDK-kv8ob
@IDK-kv8ob Жыл бұрын
Bro these videos have helped me immensely. This sh!t is so overwhelming.
@nikitamarkovski7121
@nikitamarkovski7121 3 жыл бұрын
Thanks, much clearer than on previous guy's channel lol
@pa-305
@pa-305 3 жыл бұрын
best brooo
@noelchacko
@noelchacko 3 жыл бұрын
Beautiful video
@yevgenomelchenko732
@yevgenomelchenko732 Жыл бұрын
Thanks, very helpfull!
@samueleambrosetti405
@samueleambrosetti405 Ай бұрын
Thx, that was very clear!
@wallstreetbets7741
@wallstreetbets7741 2 жыл бұрын
Cool man but I need rewatch it later
@rachpalsingh3498
@rachpalsingh3498 2 жыл бұрын
crisp and clear. Thanks.
@aliak2987
@aliak2987 2 жыл бұрын
You are amazing bro ❤
@kippenvogelchen9717
@kippenvogelchen9717 4 жыл бұрын
Thanks! Very good explained!
@rinadem5219
@rinadem5219 Жыл бұрын
super nice thanks
@leruleru8723
@leruleru8723 2 жыл бұрын
you're a LIFESAVER bro
@leonelenriquecontreras7860
@leonelenriquecontreras7860 2 жыл бұрын
Great video! thanks for the help bro! keep up the good work :)
@mohamedelfadli3125
@mohamedelfadli3125 Жыл бұрын
Totaly understood.
@Raphael-en6db
@Raphael-en6db 17 күн бұрын
public class Hawk implements Tuah{ };
@Aurora-bv1ys
@Aurora-bv1ys 14 күн бұрын
nononononono get it away from me
@Raphael-en6db
@Raphael-en6db 14 күн бұрын
@@Aurora-bv1ys public interface Tuah{ public void SpitOnThatThang(); }
@huuloc8719
@huuloc8719 3 жыл бұрын
Nice.
@UtkarshKulkarni-v5o
@UtkarshKulkarni-v5o Жыл бұрын
Here, I become a Fellow Bro!
@_Anna_Nass_
@_Anna_Nass_ 3 жыл бұрын
I have a question….it seems all of these could be done with abstract classes so why have interfaces too? Or am I missing something?
@hoangviet9787
@hoangviet9787 Жыл бұрын
thank you so much bro code
@juanestebanparraparra6302
@juanestebanparraparra6302 2 жыл бұрын
Thanks for your tutorials bro!
@reparatiicalculatoare502
@reparatiicalculatoare502 2 жыл бұрын
Genial!
@alexshepel5599
@alexshepel5599 4 жыл бұрын
Awesome, bro!
@anupamsinha7430
@anupamsinha7430 3 жыл бұрын
Bro Code, thank you so much for this. When possible, can you make a 'Design Pattern' playlist please?
@leticiapaes3745
@leticiapaes3745 Жыл бұрын
loved it
@rblahunka
@rblahunka Жыл бұрын
Thank you, thank you, thank you!!
Java polymorphism 🏁
6:12
Bro Code
Рет қаралды 130 М.
Java Interface Tutorial
14:49
Keep On Coding
Рет қаралды 139 М.
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 97 МЛН
#65 What is Interface in Java
8:03
Telusko
Рет қаралды 241 М.
Java constructors 👷
10:37
Bro Code
Рет қаралды 197 М.
Lambda Expressions in Java - Full Simple Tutorial
13:05
Coding with John
Рет қаралды 772 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 63 МЛН
Java access modifiers: (public, protected, private) 🔒
10:13
Java Interface Tutorial #78
6:16
Alex Lee
Рет қаралды 446 М.
Abstract Classes and Methods in Java Explained in 7 Minutes
7:00
Coding with John
Рет қаралды 551 М.
Java abstraction 👻
5:30
Bro Code
Рет қаралды 147 М.
Java inheritance 👪
6:11
Bro Code
Рет қаралды 291 М.
Java generics ❓
22:04
Bro Code
Рет қаралды 117 М.
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33