//********************************************** 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
3 жыл бұрын
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
6 ай бұрын
@@agrajyadav2951in high school I studied c language and c++ and now this at uni. but where are you living tho??
@Sofia-rg3er
5 ай бұрын
agree
@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
@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.
@hgatl
3 жыл бұрын
It is really understandable and he is telling clearly ,thank you bro
@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
5 ай бұрын
Works even in the same java file… without the "public" …because you do that so that other .java files can access it.
@zc7504
3 жыл бұрын
this channel is so underrated
@Iwearcute
7 ай бұрын
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.
@thegreenroom5820
2 жыл бұрын
Nice, understanding the relationship between predator and prey brought another layer of clarity. I have been existing without interfaces.
@omardumet120
3 жыл бұрын
THE BEST IN KZitem
@BroCodez
3 жыл бұрын
thanks Omar! I'll try my best to have this channel live up to that title
@ramziosta
3 жыл бұрын
Bro, you got the best tutorials! hopefully to see an AWS tutorial
@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
@peiko9767
2 жыл бұрын
This is really helpful , thank you for helping me to understand JAVA better ^^ Keep up the great work!!
@rishiandrian-roblox3601
Ай бұрын
he is a really good teacher, i appreciate your effort bro.
@cdjosh3568
3 жыл бұрын
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
@nahimgood1833
9 ай бұрын
Big thanks, teacher took 2 hours to try to explain this but you made it understandable.
@chilledxaura
6 ай бұрын
So much simpler to understand than whatever I was learning. And I can already see how this is useful in more advanced applications
@user-eo6sv1gs7p
3 ай бұрын
Ilove Your Tutorial
@jilllin9776
Жыл бұрын
Every time when I am stuck in JAVA, Bro code always saves me from there. Thank you, Bro!!
@PhillyGodschild
9 ай бұрын
Thanks, for this video it has helped me to understand more about interfaces and also learn about what I missed in class today 😊🥰
@Garrison86
2 жыл бұрын
Thanks for the explanation 👍super easy to understand
@Andboldquates
2 жыл бұрын
simple, clean, understandable, thanks thumbs up
@hesham4744
2 жыл бұрын
i love the way you simplify subjects ,keep it up bro
@hytalefanboi7471
2 жыл бұрын
Good video
@alirezatahmasebi2920
Жыл бұрын
Bro! That’s amazing! Keep it up
@anjamisimovic9214
2 жыл бұрын
this is so loud and clear! tnx
@alcachofa2394
3 ай бұрын
thanks for the explanation bro
@abdulsamadh6318
2 жыл бұрын
Lovely explanation, straight to the point!
@abdimegersa7780
2 жыл бұрын
You're the best
@sharalnaja9437
3 жыл бұрын
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: kzitem.info/news/bejne/ommgq2R9gaKDnKg
@arthur_p_dent4282
2 жыл бұрын
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
@rinadem5219
Жыл бұрын
super nice thanks
@abdialemu8391
Жыл бұрын
great!!!
@albertoam2
Жыл бұрын
Thanks, I always look at your videos, they are very easy to understand
@kaganaydn9138
Жыл бұрын
nice viode
@r4nd0m25
Ай бұрын
you are awesome dude
@leilakardan5503
Жыл бұрын
Tanks it was perfect
@helenaa1304
6 ай бұрын
been using your videos to review for my midterm, you've been a big help this semester. thanks, bro :))
@minhtetpaing1695
3 жыл бұрын
Thank you so much sir.
@ibrahimylmaz8378
2 жыл бұрын
thanks bro
@anmjubaer
Жыл бұрын
Wow. Easy to follow and understandable. Thanks.
@ymmaaarrrr
Жыл бұрын
good video
@ThiagoElias-mi1ni
12 күн бұрын
Nice
@climborre7216
2 жыл бұрын
realy good video thanks
@huuloc8719
2 жыл бұрын
Nice.
@yevgenomelchenko732
Жыл бұрын
Thanks, very helpfull!
@kim1174
4 ай бұрын
That was Awesome lecture! thx Bro!😄
@wallstreetbets7741
2 жыл бұрын
Cool man but I need rewatch it later
@_Anna_Nass_
2 жыл бұрын
I’ve officially nominated you as my Java professor
@amircc7297
2 жыл бұрын
Very informative, thanks.
@rohanl.r7673
8 ай бұрын
You are the universal java bro
@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
@user-rg6gy8yl2o
2 ай бұрын
Thank you really helped
@codewithchamod5157
6 ай бұрын
great
@user-zq6yx7of5f
Жыл бұрын
Thank you very much !
@hoangviet9787
Жыл бұрын
thank you so much bro code
@veeresh0123
2 жыл бұрын
❤
@ucquangle7496
Жыл бұрын
good!
@SpunkyGo0se
8 ай бұрын
It's crazy how teachers can be so bad at explaining simple, straightforward concepts like this.
@astamoon1505
Жыл бұрын
Love you bro
@user-kn1mo7ls7r
2 жыл бұрын
תודה לך יהודי יקר וכשר
@evryon1810
2 жыл бұрын
This is AWESOME, ty youre literally teaching me everything
@user-kn8jr5uy9u
10 ай бұрын
Here, I become a Fellow Bro!
@noelchacko
3 жыл бұрын
Beautiful video
@user-do1rw6hx4j
11 ай бұрын
Thank you for your clear explaination!
@unalysuf
Жыл бұрын
Thank you so much for your effort
@emilakhmedov2553
2 жыл бұрын
East or West Bro is the best!
@immortlreacts1740
Жыл бұрын
best explanation i've heard... saved me
@reparatiicalculatoare502
2 жыл бұрын
Genial!
@user-ie6kl8gl6j
6 ай бұрын
Bro u r sooo good!
@RSKEDITS
Жыл бұрын
great explanation
@augustinejoseph4302
Жыл бұрын
Clear and crisp👍👍👍
@SirDomselot
Жыл бұрын
*thumbs up*
@damithajayawardana7568
2 жыл бұрын
Yeah bro that's awesome thanks
@xXMaDGaMeR
2 жыл бұрын
love you bro
@jcs0984
4 ай бұрын
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
@zlh0
24 күн бұрын
love ur shit ur a life saver fr
@mohamedelfadli3125
Жыл бұрын
Totaly understood.
@marci8746
6 ай бұрын
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.
@noahgsolomon
2 жыл бұрын
Common bro W
@victorejiofor8115
2 жыл бұрын
Thanks so much, Bro Code you made this easy to understand. Now I understand what interfaces are.
@kippenvogelchen9717
3 жыл бұрын
Thanks! Very good explained!
@shdkdell
Жыл бұрын
Thanks Bro
@Simis999
Жыл бұрын
thanks a lot
@user-bu8mg7uq3s
2 жыл бұрын
Thank you
@user-vq1yi9lj3f
8 ай бұрын
You is the real bro❤❤
@garrison4825
Жыл бұрын
nice
@laylachisom8996
Жыл бұрын
Thanks for this gem
@rblahunka
Жыл бұрын
Thank you, thank you, thank you!!
@PabloCasadoRamirez
3 ай бұрын
Im going to pass my degree thanks to this guy
@treeleaf2089
11 ай бұрын
what a bro
@anupamsinha7430
2 жыл бұрын
Bro Code, thank you so much for this. When possible, can you make a 'Design Pattern' playlist please?
@NeuronCode
Жыл бұрын
I'm from Brazil, thanks for the video bro! ❤
@mdanik1361
2 жыл бұрын
,thank you bro
@alexshepel5599
3 жыл бұрын
Awesome, bro!
@nikitamarkovski7121
2 жыл бұрын
Thanks, much clearer than on previous guy's channel lol
@lorebas12
11 ай бұрын
love u;
@rachpalsingh3498
2 жыл бұрын
crisp and clear. Thanks.
@pa-305
3 жыл бұрын
best brooo
@FukSN
3 жыл бұрын
Was it just me or did you nearly write 'wabbit'. D "Ima hunting wabbits..." Great video as usual Bro. Love to see a new Java application tutorial of some sort, maybe a contacts manager or something. Anyway, thanks for what you have put up so far. All vids are clear and easy to understand.
@BroCodez
3 жыл бұрын
yeah I was thinking 'wabbit' in my head at the time lol
@thephoenixsystem6765
2 жыл бұрын
@@BroCodez That's an impressive memory, wow. I don't remember thoughts I had this morning.
Пікірлер: 245