Java interface interfaces tutorial explained example #Java #interface #tutorial
Пікірлер: 286
@BroCodez4 жыл бұрын
//********************************************** 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*"); } } //**********************************************
@janmail80184 жыл бұрын
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 Жыл бұрын
@@agrajyadav2951in high school I studied c language and c++ and now this at uni. but where are you living tho??
@Sofia-rg3er10 ай бұрын
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
@retardbuster14983 ай бұрын
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
@youvegotmail93852 жыл бұрын
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 Жыл бұрын
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.
@hgatl4 жыл бұрын
It is really understandable and he is telling clearly ,thank you bro
@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.
@Reymax16410 ай бұрын
Works even in the same java file… without the "public" …because you do that so that other .java files can access it.
@thegreenroom58202 жыл бұрын
Nice, understanding the relationship between predator and prey brought another layer of clarity. I have been existing without interfaces.
@omardumet1204 жыл бұрын
THE BEST IN KZbin
@BroCodez4 жыл бұрын
thanks Omar! I'll try my best to have this channel live up to that title
@colesimpson81884 ай бұрын
My brain is fried. I will likely never hear the word Hawk the same again
@tejirie.98613 ай бұрын
You're hearing weird things when you hear hawk too, eh?
@mahitharachchi41163 ай бұрын
same here lol
@Tarantula.8eyes3 ай бұрын
tuah!
@bestielwuca46772 ай бұрын
@@tejirie.9861 say that again
@Overseer012 ай бұрын
@@bestielwuca4677 hawk.tuah()
@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
@zc75044 жыл бұрын
this channel is so underrated
@nihadrahman4994Ай бұрын
Watching this 4 year old video right before my exam, worth every second!!
@peiko97673 жыл бұрын
This is really helpful , thank you for helping me to understand JAVA better ^^ Keep up the great work!!
@cdjosh35684 жыл бұрын
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.
@BroCodez4 жыл бұрын
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 Жыл бұрын
Big thanks, teacher took 2 hours to try to explain this but you made it understandable.
@ramziosta3 жыл бұрын
Bro, you got the best tutorials! hopefully to see an AWS tutorial
@YulianMarinov-d5pАй бұрын
4:15 "the hawk tuahs"
@Garrison862 жыл бұрын
Thanks for the explanation 👍super easy to understand
@PhillyGodschild Жыл бұрын
Thanks, for this video it has helped me to understand more about interfaces and also learn about what I missed in class today 😊🥰
@Varshith244 ай бұрын
The Hawk is tuahing
@Andboldquates3 жыл бұрын
simple, clean, understandable, thanks thumbs up
@apexlive9842Ай бұрын
Next level way to teaching Bro 👍
@chilledxaura Жыл бұрын
So much simpler to understand than whatever I was learning. And I can already see how this is useful in more advanced applications
@tenhociencia94664 ай бұрын
Your videos are awesome, I understand you better than numerous classes in my college
@jilllin97762 жыл бұрын
Every time when I am stuck in JAVA, Bro code always saves me from there. Thank you, Bro!!
@hesham47442 жыл бұрын
i love the way you simplify subjects ,keep it up bro
@alirezatahmasebi2920 Жыл бұрын
Bro! That’s amazing! Keep it up
@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
@anjamisimovic92143 жыл бұрын
this is so loud and clear! tnx
@rishiandrian-roblox36016 ай бұрын
he is a really good teacher, i appreciate your effort bro.
@wyattpearce4 ай бұрын
Such a great video man, perfectly simple thanks
@helenaa130411 ай бұрын
been using your videos to review for my midterm, you've been a big help this semester. thanks, bro :))
@elyessebouhouch3853Ай бұрын
bro i swear to god you are the coolest person ihave ever seen on the internet
@dianamilenaarchilacordoba46325 ай бұрын
great video!!! I'm infinitely grateful for your dedication and big heart to share this knowledge with the world. Thank you soo much
@albertoam2 Жыл бұрын
Thanks, I always look at your videos, they are very easy to understand
@StevenRafael2684 ай бұрын
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! :)
@sharalnaja94374 жыл бұрын
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!
@BroCodez4 жыл бұрын
thanks Shar! I have a few games near the end of the full play list if you're interested: kzbin.info/www/bejne/d2TNdmN9fdWFn9U
@abdulsamadh63182 жыл бұрын
Lovely explanation, straight to the point!
@abdimegersa77803 жыл бұрын
You're the best
@kim117410 ай бұрын
That was Awesome lecture! thx Bro!😄
@francischileshe86154 ай бұрын
The hawk is tuahing
@immortlreacts17402 жыл бұрын
best explanation i've heard... saved me
@ניסיםאלפקס3 жыл бұрын
תודה לך יהודי יקר וכשר
@anmjubaer2 жыл бұрын
Wow. Easy to follow and understandable. Thanks.
@amircc72972 жыл бұрын
Very informative, thanks.
@_Anna_Nass_3 жыл бұрын
I’ve officially nominated you as my Java professor
@曾毓哲-b1t Жыл бұрын
Thank you very much !
@阿毛-x7k Жыл бұрын
Thank you for your clear explaination!
@leonelenriquecontreras78602 жыл бұрын
Great video! thanks for the help bro! keep up the good work :)
@unalysuf2 жыл бұрын
Thank you so much for your effort
@arthur_p_dent42823 жыл бұрын
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
@marci874611 ай бұрын
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.
@minhtetpaing16953 жыл бұрын
Thank you so much sir.
@NeuronCode Жыл бұрын
I'm from Brazil, thanks for the video bro! ❤
@evryon18103 жыл бұрын
This is AWESOME, ty youre literally teaching me everything
@veeresh01232 жыл бұрын
❤
@JamesBond007rj2 жыл бұрын
Clear and crisp👍👍👍
@damithajayawardana75683 жыл бұрын
Yeah bro that's awesome thanks
@ibrahimylmaz83782 жыл бұрын
thanks bro
@victorejiofor81152 жыл бұрын
Thanks so much, Bro Code you made this easy to understand. Now I understand what interfaces are.
@LuizGuilherme-ru6nt3 ай бұрын
Pretty good video Bro
@alcachofa23948 ай бұрын
thanks for the explanation bro
@hytalefanboi74713 жыл бұрын
Good video
@r4nd0m256 ай бұрын
you are awesome dude
@shanibar68865 ай бұрын
Great video! thanks!
@RSKEDITS2 жыл бұрын
great explanation
@adanskiesabaria8 ай бұрын
Ilove Your Tutorial
@nikitamarkovski71213 жыл бұрын
Thanks, much clearer than on previous guy's channel lol
@dunnydunn5007 ай бұрын
Thank you for the tutorial! Is the "@Override" necessary? What does it do?
@Bakasenpai6117 күн бұрын
It is not necessary, it's just good practice
@jcs098410 ай бұрын
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
@climborre72163 жыл бұрын
realy good video thanks
@juanestebanparraparra63022 жыл бұрын
Thanks for your tutorials bro!
@noelchacko3 жыл бұрын
Beautiful video
@kippenvogelchen97174 жыл бұрын
Thanks! Very good explained!
@aliak29872 жыл бұрын
You are amazing bro ❤
@wallstreetbets77412 жыл бұрын
Cool man but I need rewatch it later
@yevgenomelchenko732 Жыл бұрын
Thanks, very helpfull!
@alexshepel55994 жыл бұрын
Awesome, bro!
@anupamsinha74303 жыл бұрын
Bro Code, thank you so much for this. When possible, can you make a 'Design Pattern' playlist please?
@leruleru87232 жыл бұрын
you're a LIFESAVER bro
@danny.30363 жыл бұрын
Thanks, Bro! ☕ You're awesome!
@leilakardan5503 Жыл бұрын
Tanks it was perfect
@rachpalsingh34982 жыл бұрын
crisp and clear. Thanks.
@TitenKon11 ай бұрын
Bro u r sooo good!
@IDK-kv8ob Жыл бұрын
Bro these videos have helped me immensely. This sh!t is so overwhelming.