Java interface 🦅

  Рет қаралды 226,559

Bro Code

Bro Code

Күн бұрын

Java interface interfaces tutorial explained example
#Java #interface #tutorial

Пікірлер: 286
@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 Жыл бұрын
@@agrajyadav2951in high school I studied c language and c++ and now this at uni. but where are you living tho??
@Sofia-rg3er
@Sofia-rg3er 10 ай бұрын
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 3 ай бұрын
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 Жыл бұрын
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.
@hgatl
@hgatl 4 жыл бұрын
It is really understandable and he is telling clearly ,thank you bro
@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 10 ай бұрын
Works even in the same java file… without the "public" …because you do that so that other .java files can access it.
@thegreenroom5820
@thegreenroom5820 2 жыл бұрын
Nice, understanding the relationship between predator and prey brought another layer of clarity. I have been existing without interfaces.
@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
@colesimpson8188
@colesimpson8188 4 ай бұрын
My brain is fried. I will likely never hear the word Hawk the same again
@tejirie.9861
@tejirie.9861 3 ай бұрын
You're hearing weird things when you hear hawk too, eh?
@mahitharachchi4116
@mahitharachchi4116 3 ай бұрын
same here lol
@Tarantula.8eyes
@Tarantula.8eyes 3 ай бұрын
tuah!
@bestielwuca4677
@bestielwuca4677 2 ай бұрын
@@tejirie.9861 say that again
@Overseer01
@Overseer01 2 ай бұрын
@@bestielwuca4677 hawk.tuah()
@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
@zc7504
@zc7504 4 жыл бұрын
this channel is so underrated
@nihadrahman4994
@nihadrahman4994 Ай бұрын
Watching this 4 year old video right before my exam, worth every second!!
@peiko9767
@peiko9767 3 жыл бұрын
This is really helpful , thank you for helping me to understand JAVA better ^^ Keep up the great work!!
@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
@nahimgood1833
@nahimgood1833 Жыл бұрын
Big thanks, teacher took 2 hours to try to explain this but you made it understandable.
@ramziosta
@ramziosta 3 жыл бұрын
Bro, you got the best tutorials! hopefully to see an AWS tutorial
@YulianMarinov-d5p
@YulianMarinov-d5p Ай бұрын
4:15 "the hawk tuahs"
@Garrison86
@Garrison86 2 жыл бұрын
Thanks for the explanation 👍super easy to understand
@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 😊🥰
@Varshith24
@Varshith24 4 ай бұрын
The Hawk is tuahing
@Andboldquates
@Andboldquates 3 жыл бұрын
simple, clean, understandable, thanks thumbs up
@apexlive9842
@apexlive9842 Ай бұрын
Next level way to teaching Bro 👍
@chilledxaura
@chilledxaura Жыл бұрын
So much simpler to understand than whatever I was learning. And I can already see how this is useful in more advanced applications
@tenhociencia9466
@tenhociencia9466 4 ай бұрын
Your videos are awesome, I understand you better than numerous classes in my college
@jilllin9776
@jilllin9776 2 жыл бұрын
Every time when I am stuck in JAVA, Bro code always saves me from there. Thank you, Bro!!
@hesham4744
@hesham4744 2 жыл бұрын
i love the way you simplify subjects ,keep it up bro
@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
@anjamisimovic9214
@anjamisimovic9214 3 жыл бұрын
this is so loud and clear! tnx
@rishiandrian-roblox3601
@rishiandrian-roblox3601 6 ай бұрын
he is a really good teacher, i appreciate your effort bro.
@wyattpearce
@wyattpearce 4 ай бұрын
Such a great video man, perfectly simple thanks
@helenaa1304
@helenaa1304 11 ай бұрын
been using your videos to review for my midterm, you've been a big help this semester. thanks, bro :))
@elyessebouhouch3853
@elyessebouhouch3853 Ай бұрын
bro i swear to god you are the coolest person ihave ever seen on the internet
@dianamilenaarchilacordoba4632
@dianamilenaarchilacordoba4632 5 ай бұрын
great video!!! I'm infinitely grateful for your dedication and big heart to share this knowledge with the world. Thank you soo much
@albertoam2
@albertoam2 Жыл бұрын
Thanks, I always look at your videos, they are very easy to understand
@StevenRafael268
@StevenRafael268 4 ай бұрын
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! :)
@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
@abdulsamadh6318
@abdulsamadh6318 2 жыл бұрын
Lovely explanation, straight to the point!
@abdimegersa7780
@abdimegersa7780 3 жыл бұрын
You're the best
@kim1174
@kim1174 10 ай бұрын
That was Awesome lecture! thx Bro!😄
@francischileshe8615
@francischileshe8615 4 ай бұрын
The hawk is tuahing
@immortlreacts1740
@immortlreacts1740 2 жыл бұрын
best explanation i've heard... saved me
@ניסיםאלפקס
@ניסיםאלפקס 3 жыл бұрын
תודה לך יהודי יקר וכשר
@anmjubaer
@anmjubaer 2 жыл бұрын
Wow. Easy to follow and understandable. Thanks.
@amircc7297
@amircc7297 2 жыл бұрын
Very informative, thanks.
@_Anna_Nass_
@_Anna_Nass_ 3 жыл бұрын
I’ve officially nominated you as my Java professor
@曾毓哲-b1t
@曾毓哲-b1t Жыл бұрын
Thank you very much !
@阿毛-x7k
@阿毛-x7k Жыл бұрын
Thank you for your clear explaination!
@leonelenriquecontreras7860
@leonelenriquecontreras7860 2 жыл бұрын
Great video! thanks for the help bro! keep up the good work :)
@unalysuf
@unalysuf 2 жыл бұрын
Thank you so much for your effort
@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
@marci8746
@marci8746 11 ай бұрын
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.
@minhtetpaing1695
@minhtetpaing1695 3 жыл бұрын
Thank you so much sir.
@NeuronCode
@NeuronCode Жыл бұрын
I'm from Brazil, thanks for the video bro! ❤
@evryon1810
@evryon1810 3 жыл бұрын
This is AWESOME, ty youre literally teaching me everything
@veeresh0123
@veeresh0123 2 жыл бұрын
@JamesBond007rj
@JamesBond007rj 2 жыл бұрын
Clear and crisp👍👍👍
@damithajayawardana7568
@damithajayawardana7568 3 жыл бұрын
Yeah bro that's awesome thanks
@ibrahimylmaz8378
@ibrahimylmaz8378 2 жыл бұрын
thanks bro
@victorejiofor8115
@victorejiofor8115 2 жыл бұрын
Thanks so much, Bro Code you made this easy to understand. Now I understand what interfaces are.
@LuizGuilherme-ru6nt
@LuizGuilherme-ru6nt 3 ай бұрын
Pretty good video Bro
@alcachofa2394
@alcachofa2394 8 ай бұрын
thanks for the explanation bro
@hytalefanboi7471
@hytalefanboi7471 3 жыл бұрын
Good video
@r4nd0m25
@r4nd0m25 6 ай бұрын
you are awesome dude
@shanibar6886
@shanibar6886 5 ай бұрын
Great video! thanks!
@RSKEDITS
@RSKEDITS 2 жыл бұрын
great explanation
@adanskiesabaria
@adanskiesabaria 8 ай бұрын
Ilove Your Tutorial
@nikitamarkovski7121
@nikitamarkovski7121 3 жыл бұрын
Thanks, much clearer than on previous guy's channel lol
@dunnydunn500
@dunnydunn500 7 ай бұрын
Thank you for the tutorial! Is the "@Override" necessary? What does it do?
@Bakasenpai61
@Bakasenpai61 17 күн бұрын
It is not necessary, it's just good practice
@jcs0984
@jcs0984 10 ай бұрын
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
@climborre7216
@climborre7216 3 жыл бұрын
realy good video thanks
@juanestebanparraparra6302
@juanestebanparraparra6302 2 жыл бұрын
Thanks for your tutorials bro!
@noelchacko
@noelchacko 3 жыл бұрын
Beautiful video
@kippenvogelchen9717
@kippenvogelchen9717 4 жыл бұрын
Thanks! Very good explained!
@aliak2987
@aliak2987 2 жыл бұрын
You are amazing bro ❤
@wallstreetbets7741
@wallstreetbets7741 2 жыл бұрын
Cool man but I need rewatch it later
@yevgenomelchenko732
@yevgenomelchenko732 Жыл бұрын
Thanks, very helpfull!
@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?
@leruleru8723
@leruleru8723 2 жыл бұрын
you're a LIFESAVER bro
@danny.3036
@danny.3036 3 жыл бұрын
Thanks, Bro! ☕ You're awesome!
@leilakardan5503
@leilakardan5503 Жыл бұрын
Tanks it was perfect
@rachpalsingh3498
@rachpalsingh3498 2 жыл бұрын
crisp and clear. Thanks.
@TitenKon
@TitenKon 11 ай бұрын
Bro u r sooo good!
@IDK-kv8ob
@IDK-kv8ob Жыл бұрын
Bro these videos have helped me immensely. This sh!t is so overwhelming.
@אביבמהרשק
@אביבמהרשק 8 ай бұрын
Thank you really helped
@Felix_1811
@Felix_1811 3 ай бұрын
Thank you, your saving my life
@UtkarshKulkarni-v5o
@UtkarshKulkarni-v5o Жыл бұрын
Here, I become a Fellow Bro!
@JayathuShehan
@JayathuShehan Жыл бұрын
You is the real bro❤❤
@zlh0
@zlh0 6 ай бұрын
love ur shit ur a life saver fr
@rohanl.r7673
@rohanl.r7673 Жыл бұрын
You are the universal java bro
@rinadem5219
@rinadem5219 Жыл бұрын
super nice thanks
@abdialemu8391
@abdialemu8391 Жыл бұрын
great!!!
@emilakhmedov2553
@emilakhmedov2553 3 жыл бұрын
East or West Bro is the best!
@pa-305
@pa-305 3 жыл бұрын
best brooo
@ElifArslan-l9g
@ElifArslan-l9g 3 жыл бұрын
Thank you
@PabloCasadoRamirez
@PabloCasadoRamirez 8 ай бұрын
Im going to pass my degree thanks to this guy
@giathinhnguyen1800
@giathinhnguyen1800 3 жыл бұрын
I am not good at English. But so easy. thanks Bro
@keler50213
@keler50213 Ай бұрын
great!
Java polymorphism 🏁
6:12
Bro Code
Рет қаралды 140 М.
Abstract Classes and Methods in Java Explained in 7 Minutes
7:00
Coding with John
Рет қаралды 581 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Java Interface Tutorial
14:49
Keep On Coding
Рет қаралды 144 М.
Java threads 🧵
16:01
Bro Code
Рет қаралды 131 М.
I Cannot Believe TypeScript Recommends You Do This!
7:45
Web Dev Simplified
Рет қаралды 182 М.
Intro to Java Programming - Course for Absolute Beginners
3:48:25
freeCodeCamp.org
Рет қаралды 3,7 МЛН
#65 What is Interface in Java
8:03
Telusko
Рет қаралды 271 М.
Lambda Expressions in Java - Full Simple Tutorial
13:05
Coding with John
Рет қаралды 802 М.
Java inheritance 👪
6:11
Bro Code
Рет қаралды 310 М.
Java generics ❓
22:04
Bro Code
Рет қаралды 123 М.
Java lambda λ
18:00
Bro Code
Рет қаралды 103 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН