Тёмный

Abstract Classes vs Interfaces (Java) 

The Code Hard Truth
Подписаться 2,2 тыс.
Просмотров 208 тыс.
50% 1

A simple example that demonstrates the use of both Abstract Classes and Interfaces. The two can be used in many different ways, either exclusively or in combination. We chose to keep them separate in order to demonstrate the main differences.

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 337   
@DeekHare
@DeekHare 6 лет назад
I've learnt more in 9 minutes than my 3 hour long lecture in school. Thank you!
@tomokoo3675
@tomokoo3675 6 лет назад
The same here! This video saved me.
@blanka4545
@blanka4545 6 лет назад
Exactly spent like 5 hours on this could go faster with a simpler understanding and practice yeah!
@SomeGuy-ye8it
@SomeGuy-ye8it 5 лет назад
That's because in school you have to look at girls asses, but on youtube the only ass you see is ||
@nassimamoufakkir7519
@nassimamoufakkir7519 4 года назад
true
@That_One_Guy...
@That_One_Guy... 4 года назад
@@SomeGuy-ye8it Not true, most schools/universities tutor are truly shitty at teaching. Proven almost on most part on Earth saying they learn more from internet than education institution. I learned high school and middle school math from internet and went from noob to pro in all of them in just less than a year
@tacog4703
@tacog4703 7 лет назад
Hands down..... the BEST tutorial on Abstract classes v.s. interfaces!!! The way you delivered concept with wrestlers was a stone cold stunner to me and I NEVER comment on RU-vid videos. please keep doing what you're and thanks for the truth
@thecodehardtruth8960
@thecodehardtruth8960 6 лет назад
Haha, thanks for the kind words
@jeremiahnji6
@jeremiahnji6 7 лет назад
I cannot describe how beautifully you explained these two very confusing concepts. I won't be confusing either of them ever again.
@adityaanand927
@adityaanand927 5 лет назад
Same Here!
@reubenrajeev4861
@reubenrajeev4861 6 лет назад
Love how you went straight to the point 1 minute in. I don't why people always try to take an hour to explain what exactly things are.
@TTOSWE
@TTOSWE 5 лет назад
I love how you can come from a 4 hour lecture on this without understanding a single thing and watch 10min video and understand everything. Thank you, good sir!
@ReixScarlet
@ReixScarlet 6 лет назад
I am paying a stupid amount of money at college for this and yet you did a better job for free, thank you very much!
@MIDNightPT4
@MIDNightPT4 5 лет назад
Using wrestlers for the classes, that is so dope!!! That made this video so much more interesting as well
@rudyaldana6463
@rudyaldana6463 4 года назад
Hey look Larry Wheels likes to program too
@faizaanmomin6416
@faizaanmomin6416 6 лет назад
THIS VIDEO WAS SO GOOD, IF I OWNED A UNIVERSITY, I WOULDA HIRED YOU IN HEARTBEAT
@SID954rockstar
@SID954rockstar 6 лет назад
Man you are the hero the world of programming has but does not deserve. Loved that explanation, cleared all my doubts. Thanks a bunch!!
@thecodehardtruth8960
@thecodehardtruth8960 6 лет назад
Siddhant Dube 😂
@bobbycvsixfour5258
@bobbycvsixfour5258 5 лет назад
I have been developing in Java since 1996, never saw a better explaination. WELL DONE SIR. BTW, I am going to start using Wrestlers for my presentations from now on. Starting with Crusher, then Mad Dog Vashon, Nick Bockwinkel, etc Long Live Amercian Wrestling Association :-)
@thecodehardtruth8960
@thecodehardtruth8960 5 лет назад
Wow, thank you 🙏
@HaiderAli-oi5fm
@HaiderAli-oi5fm 2 года назад
Damn man!!! This is by far the best video I have found and it cleared all my doubts. Kane and Stone cold were making bucks but Rock was cooking something.
@zivkostoimcev7379
@zivkostoimcev7379 Год назад
You deserved my like and save!! In less than 10 minutes i figured it out better than my Professor explained. Well done! :):)
@vanamutt43
@vanamutt43 3 года назад
it's been almost 5 years since you uploaded and it is still the best video explaining this topic. thanks mate.
@qtech6672
@qtech6672 2 года назад
This dude just saved me 3 hours during the night!! Thanks BRO!
@muazammukaram1120
@muazammukaram1120 6 лет назад
thank you so much....my PhD professor wasnt able to explain this to me. bless you man.
@thecodehardtruth8960
@thecodehardtruth8960 6 лет назад
MUAZAM MUKARAM 😂 np
@hubertlenningrad2252
@hubertlenningrad2252 3 года назад
I've been reading about these for about 30 pages. Everything just clicked with the contract analogy. Thanks Man!
@motowolf32
@motowolf32 3 года назад
By far THE BEST explanation and example of abstract and interfaces I've seen!
@puskarrimal6247
@puskarrimal6247 3 года назад
You're a good teacher. You know what you are talking about. Thanks, buddy.
@evanestrada1
@evanestrada1 5 лет назад
You're doing the world a disservice by not making more videos. You rock!
@thecodehardtruth8960
@thecodehardtruth8960 5 лет назад
😂 Let me know what other topics. Haven't thought of making it a whole thing
@pl5778
@pl5778 6 лет назад
this is probably the clearest explanation of interface vs abstract class on youtube. combined with the example and starwars = epic
@techbrojoe
@techbrojoe 6 лет назад
Really helpful. I've read about both interfaces and abstract classes and it never made complete sense. Really liked the wrestling analogy. Made a lot of sense and I can define what they are now.
@alwaseem5309
@alwaseem5309 6 лет назад
Trust this ,I know the whole concepts and i got shocked when i watched this !! you are a genius guy. Best Ever
@reverendumrandom4507
@reverendumrandom4507 3 года назад
I have wasted 4 hours reading articles and papers which explain interfaces and abstract classes and still yet to understand. You put those articles and paper to shame by explain this concept in just 10 mins and immediately understood it. Will subscribe.
@Propain4eva
@Propain4eva 2 года назад
I love the way you explain it as a contract. Great way to explain this!
@samasef821
@samasef821 5 лет назад
This is really one of the most clear explanations I've ever come across. You really made me feel like i'm more intelligent than I think. Thanks.
@moloiteboho
@moloiteboho 3 года назад
I haven't finished the video and I know it's 5 years old but thank you so much... It really helped.
@sapko317
@sapko317 5 лет назад
Same case here. Watched 3 hour lecture 3 times and didn't get it. Watched 9 mins and it's all clear. Thank you very much! I hope you'll continue making these videos, they're really helpful!
@mickeytone
@mickeytone 3 года назад
The best explanation of abstract vs interface i could find on youtube. And great example!
@nismosrt
@nismosrt 5 лет назад
i read for about an hour and a half and still couldnt grasp the concept (guess im dumb). this video taught me in nine minutes. you're a champ
@TheLollercaster
@TheLollercaster 6 лет назад
OMG! Thank you very much for your video!! Very helpful and never imagined how useful wrestlers can be (as an example) haha
@softballnims9
@softballnims9 2 года назад
god bless you for using a wrestling example. you spoke to my heart. Great video! thank you for the info!
@VeraxMusic
@VeraxMusic 2 года назад
Same here
@CuongTran-ml2sk
@CuongTran-ml2sk 4 года назад
Absolutely straightforward and easiest to understand these complex concepts
@manu7623
@manu7623 4 года назад
BEST tutorial on the internet!! Thx man, u helped me pass my software exam
@tristanwilson3690
@tristanwilson3690 7 лет назад
Awesome video man. Helped me decide whether to use an Interface or Abstract class in my Android Studio project, after needing to use methods in many of the same activities. Subbed.
@youtubeaccount0x073
@youtubeaccount0x073 5 лет назад
You are flipping amazing!!!!!! Great explanation now I can finish this hierarchy class of the animal kingdom for class!!
@thinhle3588
@thinhle3588 6 лет назад
Dude, You've just brought me out of the confusion. Thanks again, great work!
@SalmanHersi
@SalmanHersi 5 лет назад
This is just an amazing and clean tutorial. Never seen anything better, great work.
@TheLegendaryMac
@TheLegendaryMac 6 лет назад
OMG thank you so much...although I still have further questions on why someone would want to choose an interface over an abstract class this is absolute the best explanation (personally for me) on these concepts. Thanks again!
@sondippoulsingh9438
@sondippoulsingh9438 4 года назад
Watched the first video and Subscribed instantly. Great Explanation.
@LakeErieFX13
@LakeErieFX13 5 лет назад
This is the best video out here for this topic.
@thecodehardtruth8960
@thecodehardtruth8960 5 лет назад
🙏
@nurulloalijonov7854
@nurulloalijonov7854 4 года назад
Dude I love your voice, its like one of those narrator in 80-90s movies
@davidkadokhov2646
@davidkadokhov2646 5 лет назад
This is the baddest tutorial I've ever watched!!! BMF award goes to "The Code Hard Truth"!!!
@hugoirwanto9905
@hugoirwanto9905 4 года назад
omg this is the best abstract class java i've seen on youtube thankss
@user-gz7fh8vo6e
@user-gz7fh8vo6e 4 года назад
Most explanations are confusing because they explain WHAT something is, but not WHEN you would use it, or what it means when you see it being used. It gives the reader more information but no way to slot and fit that information into their brain, and its left up the reader's own intelligence/experience to help connect the dots. Doesn't answer WHY I would want to use something. This video explanation does everything right.
@akshaysingh5179
@akshaysingh5179 3 года назад
amazing explanation. Much better than other videos. You explained the concept with how to approach & when to approach...really liked it.
@JJoy_21
@JJoy_21 2 месяца назад
Its 2024 and your video makes more sense than my prof ... good job btw🎉
@Daverhan02
@Daverhan02 4 года назад
This was a very helpful video in understanding what abstract classes and interfaces are in Java!
@vesilec1
@vesilec1 3 года назад
Finally I got the difference ! Thank you so much for great explanation !!
@ampo2004
@ampo2004 2 года назад
The very best video for abstract vs interfaces 🫡
@connorhatcher2202
@connorhatcher2202 6 лет назад
Exactly what I was looking for in an explanation. Keep it up.
@MrEpiclost
@MrEpiclost 5 лет назад
Omg this just settled things. You’re the hero that new cs students need T.T
@HuGiv5
@HuGiv5 3 года назад
Man i was getting confused by this topic, i never knew when to use one or another in the course challenge man. Thanks!
@tf2player943
@tf2player943 6 лет назад
thank you so much! I was sick yesterday and this helped out a lot.
@thecodehardtruth8960
@thecodehardtruth8960 6 лет назад
TF2Player np man
@erm12341
@erm12341 4 года назад
best explantion on this topic , subbed
@TheWolfPackFam
@TheWolfPackFam 5 лет назад
Awesome video! so many other videos made this sound so much more complicated then it needed to be. Would love to see more of your videos, you are very good at explaining this stuff.
@lazyluke2773
@lazyluke2773 4 года назад
Such a wholesome intro. You have to make more videos or even a series.
@KhoaLe-oc6xl
@KhoaLe-oc6xl 4 года назад
Wow! You’re my savior!!! Very helpful video 🙏
@amanueltesfu6071
@amanueltesfu6071 2 года назад
Thank you so much. It is loud and clear!
@MegasXLR
@MegasXLR 6 лет назад
I have an exam and am pretty sure this will be in it. Think I know it all now, thanks a lot :) Was super confused between these two. I also played a lot of WWE Ultimate Impact and the game from 2003 or so as a kid, Rey Mysterio ftw xd
@thecodehardtruth8960
@thecodehardtruth8960 6 лет назад
MegasXLR lol nice. Good luck.
@Sapphiamur
@Sapphiamur 4 года назад
Thank you, great explanation!!!
@theamazingmonkey100
@theamazingmonkey100 5 лет назад
You are an AMAZING teacher. Thank you for this!
@whyisthereyou
@whyisthereyou 5 лет назад
Reading the book Thinking in Java, great book with great explanations but the author's code examples aren't always that great. Found this video and I instantly understood the difference between the two. Awesome explanation!! Thank you! Just subscribed :)
@cristianperez2011
@cristianperez2011 5 лет назад
Very good video man! I wish you had more content in Java. Don't quit telling us The Code Hard Truth
@armandomagana2084
@armandomagana2084 5 лет назад
Perfect example of Abstraction. Thank you.
@haleygoodwiler6510
@haleygoodwiler6510 5 лет назад
love this, thank you for the real talk and comparisons.
@the_moto_monk_ey
@the_moto_monk_ey 3 года назад
Kane will throw an exception. Tombstone not found. 😂 Excellent explanation by the way.
@davidsanchez-bu9un
@davidsanchez-bu9un 4 года назад
Very useful and video and comprehensive example!!!.
@musicjunkie421
@musicjunkie421 5 лет назад
This video was fire fam, much appreciated.
@bassamodaymat8329
@bassamodaymat8329 5 лет назад
Thank you for your proper and Way less sophisticated explanation. Really helped a lot bro.
@mangneokhongsai3257
@mangneokhongsai3257 6 лет назад
That's a great explaination it's easy to grasp the concept particularly when its demonstrated using examples.
@thecodehardtruth8960
@thecodehardtruth8960 6 лет назад
Mangneo Khongsai thank you
@cecesnow4670
@cecesnow4670 5 лет назад
Great explanation on the difference between abstract class and interface. I totally understand it after watching your video, thanks for sharing...
@imrsk
@imrsk 5 лет назад
I have two doubts: 1) Why this channel hasn't reached 100k subscribers yet?. 2) What is the use of having a class with no methods at all? And why would anyone instantiate a class with no methods?
@artificialsoundwaves
@artificialsoundwaves 3 года назад
Amazing explanation! Thank you for making it super simple to understand.
@sumadre8379
@sumadre8379 6 лет назад
Thank you so much, I have exam tomorrow and this really helped!
@bobjoseph3463
@bobjoseph3463 6 лет назад
That was great you have nailed these concepts, thanks.
@sheheryarwasti1426
@sheheryarwasti1426 4 года назад
You're the hero we need!
@ahmedaj2000
@ahmedaj2000 5 лет назад
THANK YOU, RIGHT BEFORE MY EXAM!
@VeraxMusic
@VeraxMusic 2 года назад
I learned more in 9 minutes than I did in 2 weeks of my class.
@liliacfury
@liliacfury 2 года назад
Interfaces can also inherit more than one class opposed to abstract classes (just classes in general)
@derek8482
@derek8482 4 года назад
dude, you made this simple. Thanks alot!
@harshildoshi3299
@harshildoshi3299 6 лет назад
Perfectly explained for those who are Wrestling freak & IT geek.
@aleksandardjurendic8627
@aleksandardjurendic8627 Год назад
Best explanation ever!!!
@peiyuan530
@peiyuan530 4 года назад
Easy to understand and well explained concepts
@raghurrai
@raghurrai 6 лет назад
Very well explained. Loved it. Hope you would’ve added more about the implementations of these but this will get me started just fine. Subscribed.
@Sam-se1tg
@Sam-se1tg 4 года назад
Clear explanations and cool simple examples, phat subscribe
@fantasylla4385
@fantasylla4385 6 лет назад
You know what you are talking about. Thank for this clarification. It was so confused for me, now I can better explain to someone else.
@ahmetmehmet9171
@ahmetmehmet9171 3 года назад
I've learnt more in 9 minutes than my 3 hour long lecture in school as well. Even that the video was filmed 5 years ago.
@theZodiacGriller
@theZodiacGriller 4 года назад
10/10 video mang! well done
@MayyasNakhli
@MayyasNakhli 6 лет назад
Such a good example. Great Job.
@LifeIsGood1992
@LifeIsGood1992 6 лет назад
this is the best explanation ever !
@JatanPassi
@JatanPassi 3 года назад
Thanks great explanation got even more interesting with that stone cold and kane's example 🙌
@AlvaroUrsua
@AlvaroUrsua 5 лет назад
God, i was re-reading this damn chapter in my textbook and it did not make any sense. Thank you!!
@stucatz1130
@stucatz1130 3 года назад
Awesome explanation and love the use of wrestlers!!! Haha
@irvinln
@irvinln 3 года назад
Thanks for this vid! Using wwe stuff made it easier to focus.
@TheDomcia0600
@TheDomcia0600 5 лет назад
Good stuff! Made it so easy to understand even with wrestler names 😂🙌
@roryclear357
@roryclear357 5 лет назад
Thank you Mr. Truth
@starboidrew7112
@starboidrew7112 Год назад
Thank you, I am doing Java opp now in school, and its all online, and I could not grasp this whole concept, I just need some more hands-on practice
@youth1760
@youth1760 4 года назад
Haha bro you nailed it. Very well explained. Thanks!
@sankararaojeeru4333
@sankararaojeeru4333 2 года назад
Thank you so much for the video... Love the explanation
@hamzagobir2530
@hamzagobir2530 6 лет назад
very good explanation bruh - bonus points for the WWF references lol keep it up
Далее
Abstract Class In Java Tutorial #79
8:55
Просмотров 542 тыс.
Difference between Interface and Absract Class
30:52
Просмотров 181 тыс.
Dependency Injection, The Best Pattern
13:16
Просмотров 831 тыс.
Abstract Classes and Interfaces
26:34
Просмотров 304 тыс.
Java interface 🦅
7:51
Просмотров 194 тыс.
The purest coding style, where bugs are near impossible
10:25
Learn How to Use Abstract Classes
17:28
Просмотров 67 тыс.
Brutally honest advice for new .NET Web Developers
7:19
Java Polymorphism Fully Explained In 7 Minutes
7:16
Просмотров 316 тыс.