Тёмный

Abstract Class In Java Tutorial #79 

Alex Lee
Подписаться 413 тыс.
Просмотров 542 тыс.
50% 1

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

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 902   
@alexlorenlee
@alexlorenlee 11 месяцев назад
If you’re new to programming but want a career in tech, I HIGHLY RECOMMEND applying to one of Springboard’s online coding bootcamps (use code ALEXLEE for $1,000 off): bit.ly/3HX970h
@DiabeticDebuff
@DiabeticDebuff 4 года назад
dude you managed to do in 9 minutes what my professor couldn't do for a whole class: teach us about Abstract classes/methods. Thank you!!
@bindus4943
@bindus4943 4 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-98AAbox6ka8.html
@julian.castro18
@julian.castro18 4 года назад
and poop.
@mansioncapital3358
@mansioncapital3358 4 года назад
@@bindus4943 ahahha
@johecht7872
@johecht7872 4 года назад
Same, he just simplified everything my teacher said
@tjake7864
@tjake7864 3 года назад
I agree!
@danielmagdziarz7440
@danielmagdziarz7440 4 года назад
Favorite line: "public void poop"
@vpenywise
@vpenywise 4 года назад
I couldn't get though how can a 'poop' be a 'void', when it most definitely 'returns' something :) I mean, you definitely see the result, right there! :)
@thedude4795
@thedude4795 4 года назад
I invested in stocks and my *final* *return* was *void.* *Silence. *
@adenosinetp10
@adenosinetp10 3 года назад
@@thedude4795 lol
@smellthel
@smellthel 3 года назад
@@vpenywise mind blown
@JohnDoe-cu6jv
@JohnDoe-cu6jv 3 года назад
"avoid" poop
@vpenywise
@vpenywise 4 года назад
That's like 200 pages summarised in 9 minutes, thank you!
@agrajyadav2951
@agrajyadav2951 2 года назад
TWO HUNDRED!!??
@vladthecoldone8804
@vladthecoldone8804 2 года назад
More like 20. His reasoning is not what it actually is, basically he says how he feels about it. Doesnt even explain when you should use A instead of B, that you can use extends and implements simultaneously and why is it useful etc. Like I said "more like 20" but I understand that hes dumbing it down so regulars can understand and that Im procrastinating and probably should be studying for exams lmao
@josephkreifelsii6596
@josephkreifelsii6596 Год назад
@@vladthecoldone8804 More like 5. I've never seen a single Programming textbook take more than 5 pages to explain 1 thing
@SamiUllah-sh9rb
@SamiUllah-sh9rb 4 года назад
I requested this video yesterday? You are so Quick and made this video. Love From Pakistan 🇵🇰 🇵🇰 🇵🇰....
@kannankichu1997
@kannankichu1997 4 года назад
How and where to request him?
@SamiUllah-sh9rb
@SamiUllah-sh9rb 4 года назад
@@kannankichu1997 survey and questions asked by alex in a post on RU-vid.
@LT-pp2vr
@LT-pp2vr 4 года назад
Truly thankful from an initial programmer from Taiwan
@anshuman4873
@anshuman4873 4 года назад
Do people in Pakistan study too ?.. Amazed man...
@nyko1689
@nyko1689 4 года назад
@@anshuman4873 LOL, what makes you think they don't study? just curious.
@lachlanstavrevski5255
@lachlanstavrevski5255 4 года назад
You should literally be teaching programing courses for universities. You explain everything so well!
@mmq6525
@mmq6525 2 года назад
he wouldnt be able to teach a 10+ week course, he'd have you ready for finals in 3 weeks
@serdarekid
@serdarekid 4 года назад
YESSS!!! Just what I needed and when. Thank you man, you're the best!
@bindus4943
@bindus4943 4 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-98AAbox6ka8.html
@ccacc_
@ccacc_ 4 года назад
love how every start of the video, you would be encouraging beginners like us that are in confusion state, that we will eventually understand it.
@Lydeliini
@Lydeliini 3 года назад
That's what got me hooked :P And he was right!
@abdulpangandaman
@abdulpangandaman 4 года назад
After or during each of your video can you give us an assignment? Or some sort of activity that we need to answer/code. In that way, we will know the essence of your tutorial.
@jiggyfeets6050
@jiggyfeets6050 2 года назад
facts @alex lee
@עדןמזור
@עדןמזור 4 года назад
You always know *JUST* what I need! Did you create a program of mind reading?
@Chimeratech_O.D.
@Chimeratech_O.D. Год назад
Turned a massive chunk of my textbook into a bitesize lesson. Thanks a million, Alex.
@atousamas7232
@atousamas7232 4 года назад
After a year of struggling to understand abstracts and interfaces,I just learned them right now in just 8 minutes. It was really really helpful,you explained it so simply and so good,thanks
@Mangadrawings123
@Mangadrawings123 4 года назад
You may or may not have just saved me from failing my exam
@khanf13
@khanf13 3 года назад
howd u do
@Salio_Mendes
@Salio_Mendes 3 года назад
I hope u did well, I got my exams this week...help!
@goldengunist
@goldengunist 4 года назад
ALEX!! Thank You for making all these Java videos!! Seriously think that you deserve at least 100K subs for the simple and clear explanations! PLUS it helps that your super handsome and cute
@nigelburke7391
@nigelburke7391 4 года назад
6:10 lol, literally answered my question as it popped into my head
@kaushiksenthilkumar682
@kaushiksenthilkumar682 4 года назад
"Every dog poop a little differently ", I laughed for almost 3 minutes lol
@marciano2293
@marciano2293 4 года назад
Can you make a tutorial about java GUI using javaFX ?
@lux27.42
@lux27.42 4 года назад
Marciano nah(y)
@MisterWealth
@MisterWealth 4 года назад
Yeah!
@XAyaDubX
@XAyaDubX 4 года назад
You're an absolutely amazing teacher. Thank you so much for making everything so simple. You communicate very efficiently.
@Shaf23
@Shaf23 4 года назад
Can you do a video where you explain all of your shortcuts? It would really help me save more time
@ghostropes
@ghostropes 4 года назад
Making and implementation of a GUI currently what I'm struggling with right now also do you use the java library site religiously or not that often?
@kharlopena7512
@kharlopena7512 2 года назад
Thanks for this! My professor is great, but even she made this sound way more complex than it is. Your video was super helpful!
@annahuggins6636
@annahuggins6636 3 года назад
I'm a student in college atm, we just got a major assignment over polymorphism and abstraction, and naturally, we barely covered this. I am super thankful for this video, it has been super helpful in explaining the differences between abstract classes and regular ones and I would not be able to understand abstraction so well without this video!
@SuperMrHolmes
@SuperMrHolmes 4 года назад
This was extremely helpful. You are very talented at teaching and keeping it concise. Thank you!
@seajay9711
@seajay9711 3 года назад
in less than 15 minutes this person just taught me abstract classes nad methods and polymorphism, something my college professor couldn't do in a month's worth of lectures. Major thanks from a panicking student in finals season!!
@harshshastri6099
@harshshastri6099 3 года назад
Hey Alex, you're doing a great job. It would be cool if you could cover how static methods are used in interfaces and abstract classes, and how variables cannot have abstract keyword in them.
@aishwaryamurugappan5138
@aishwaryamurugappan5138 4 года назад
Alex,Thanks a lot,for this clear and simple explanation with cute examples, this is very helpful,and i'd also wish if you could make videos like, kinda creating simple games with java or a demo on some project with java,on application basis of these concepts.. :)
@miracle_of_india
@miracle_of_india 2 года назад
As I watched this video I really got confused Why did we create interfaces like what is its use
@yaminchoudhury8732
@yaminchoudhury8732 4 года назад
Broskiii this was the best 9 minutes of my life, I love you thank you so much. LIFE SAVER
@RisePavilion
@RisePavilion 2 года назад
My lecturer : *Attempting to explain abstract classes* Me : "Not a clue" Alex : "Dog poops. Dog barks" Me : "Okay now I get it"
@Bryan_Salvador
@Bryan_Salvador 4 года назад
Pretty much everything I need to know condensed in
@MagicTheNoah
@MagicTheNoah 4 года назад
You have helped me very much
@xenonnanon
@xenonnanon 4 года назад
I have a Free Response quiz tomorrow, and you just helped me secure my A. Thank you very much, Alex! You have my sub!
@riddhijoshi8528
@riddhijoshi8528 2 года назад
Ok so is the Object class an abstract method? Or is it just a normal class? And can abstract methods and interfaces basically be used the same way? I understand how they work, but I don’t understand which situation this would be useful for. Thx for the video Alex!
@mycode0
@mycode0 4 года назад
Could you do some interesting projects with java
@TobySullivan
@TobySullivan 4 года назад
maybe
@adeebsuhail
@adeebsuhail Год назад
**you can implement methods in interface using default and static keyword, this was enabled by java after the version 8, just remember this point as many interviewers will ask this trick question to confuse you during interviews.**
@kalaiselvan539
@kalaiselvan539 4 года назад
Is this the only difference between abstract and interface .. or something yet to add
@jameslowell9656
@jameslowell9656 4 года назад
You can implement multiple interfaces but you can only extend one class regardless of whether it is abstract or not.
@Sk8zOfficialMusic
@Sk8zOfficialMusic Год назад
You were able to explain something I'm learning in a coding bootcamp for over 2 days in 8 minutes. Thanx so much man.
@noei.quezadatorres3920
@noei.quezadatorres3920 2 года назад
Dude you're a gooood, i came here looking for the definition of abstract, and ended having the knowledge of implements, interface and the abstract itself, gooood bro
@vaxtrixradicalbro4295
@vaxtrixradicalbro4295 2 года назад
I know that my comment is already too late, but it would be even more helpful if there was an explanation + example as to why you would use abstract vs interface, like i want to know the mindset of a person and their decision making on why they chose one over the other or used both in different places.
@DANNFIGDESIGNS
@DANNFIGDESIGNS 3 года назад
Brother. I love that you're pursuing your dreams and I know you'll do well. I will miss your Java vids. They have saved me. I don't have a good teacher for my college course. 😳Maybe you'll pop up every now and then and throw us Java people some love/bones. Regardless, thank you for being an encouragement and a big help. May you have continued success. 🤠
@imanbelhaj4681
@imanbelhaj4681 Год назад
can u be my boyfriend , please? ♥ I love ur videos, I might have an opportunity of not failing the exam xd.
@ericlin8331
@ericlin8331 4 года назад
My professor spent an hour and 30 minutes trying to explain abstract classes and still manage to fail to get us to understand it. This is wayyy more clearer.
@davidstrom1434
@davidstrom1434 2 года назад
You should teach in university. These are the best Java Videos i have seen! Thank you for saving my butt!!
@cody1541
@cody1541 2 года назад
I was about to ask how is this different from an interface? Then you explained as I was typing the comment 😂
@HarmlessPotato.0
@HarmlessPotato.0 Год назад
4:21 how the fk is he saying *public void poop* with a straight face XD
@VladMarinVlog
@VladMarinVlog 3 года назад
Thank you, Alex, I really appreciate your videos. I have something that I would love an explanation for. I don't get things like: Book a = new Audiobook(); Book b = a; Animal animals [] = new Animal[2]; animals[0] = new Cat(); Audiobook a = new Book(); I don't even don't know how to look for that on Internet,. I don't expect to make a video on this, but, if you consider that this is a pattern that has a name and there are more like me in search of info about this, maybe you could approach it in one of your future videos. I hope I made myself understood, English is not my native language. Anyway, thank you for your great work!
@Loqalz
@Loqalz 2 года назад
you are carrying me through my whole java learning process, you're videos are so helpful keep it up :D
@mohamadnaser2697
@mohamadnaser2697 2 года назад
Bro what about making videos about servlet and JSP? it will help us ;)
@wan801
@wan801 2 года назад
not quite sure but I think coding with Jon copied your video just w/ cats ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-HvPlEJ3LHgE.html
@niranjanwagh5767
@niranjanwagh5767 2 года назад
I feel so lucky to stumbled onto this video. I probably would have never understood it for the rest of my life.
@ananthr1583
@ananthr1583 3 года назад
Lol dude you are a kid and I absolutely love it ..clicking this video is propbably the best decision i took today!
@stanleymbhalati6196
@stanleymbhalati6196 2 года назад
Damn this was so helpful its confusing from the textBook hey but u cleared it well
@milanbandara8335
@milanbandara8335 4 года назад
In the middle of the video I was thinking "what's the difference between interfaces and abstract classes?" and I was to comment that 😅, You explained that too. 😉 Thanks alot 😀.
@WinOfficially
@WinOfficially 2 года назад
I am developer from 2 years and have been unable to understand abstraction. But now thanks to you I finally can. Love you man 👊😀
@emrezkc
@emrezkc 2 года назад
so in an abstract class we can have methods that are not abstract but in an interface we cant. makes perfect intuitive sense :)
@ianssight2785
@ianssight2785 4 года назад
Hi Alex, I just want to comment on the great job you are doing. The video's are fun, informative and frequent enough to make real progress. Thank you, Thank you, Thank you.
@prasadjeyapalan8918
@prasadjeyapalan8918 2 года назад
You managed to explain this in 9 minutes what my professor was trying to ramble forever.
@nay2d2
@nay2d2 4 года назад
so interface is so that each class can have a unique way of having the method, and abstract class is for making sure that a specific method can be given to each class that needs it while also being able to define specific methods that are unique to that specific class right?
@charleswright2442
@charleswright2442 3 года назад
You can always @override bro ;)
@MonikaLife
@MonikaLife 2 года назад
I agree with a lot of comments - YOU ARE GOOD!! You explain the basic information that is needed to understand how it works, why we need it and whats the difference between abstract and interface
@josejimenez7502
@josejimenez7502 2 года назад
Really good explination this helped me alot it all clicked thanks alot
@kunpeng8646
@kunpeng8646 4 года назад
I am a new learner on programming and I am getting stuck on the abstract class concept, this video helped me a lot, I totally understood right now. The example of a dog, poop, made the complicated concept much easier to be got by new learners like me. Thanks, this is a pretty nice tutorial!
@TheEchomaker
@TheEchomaker 2 года назад
thank you so much for clarifying the differences between abstract classes and interfaces!
@sean3589
@sean3589 4 года назад
Great video! Could you also make a video on Multi-threading and Synchronization
@wenkaiyang1487
@wenkaiyang1487 9 месяцев назад
so abstract method is basically just a reminder?
@praneethchakri7052
@praneethchakri7052 2 года назад
Dude, Thank you so much for explaining us in the most layman way as possible. Have always been intimidated to understand or get the right picture of these terms since "years". You just made my java fears fly away by explaining these basics in 10 mins each. Thanks again.!!
@monicaperez5101
@monicaperez5101 3 года назад
I perfectly know how to explain the difference between interface and abstract class! Thank you!
@mayregio
@mayregio 2 года назад
amazing explanation! Really appreciated =)
@TobySullivan
@TobySullivan 4 года назад
i think sam pettersson's face looks like abstract artt B)
@TobySullivan
@TobySullivan 4 года назад
truthhs
@osamaakhtar6525
@osamaakhtar6525 4 года назад
Great tut Alex! You just missed a small point. A regular class can implement multiple interfaces but can only extend one class. :) keep up the good videos!!
@amirkamalian4848
@amirkamalian4848 2 года назад
i have BEEN searching for this topic for a long time, i'm 100% sure this is the best video in the internet to understand abstract and interface, Thank you ALOT !
@joeyjaehyeokkim5064
@joeyjaehyeokkim5064 Год назад
4 yers later, still helping students. You prob don't even realize how helpful these videos are fr
@adamameen5
@adamameen5 2 года назад
You are amazing. Such clear explanation. Learnt within 9 minutes that could not be learnt for 9 years.
@itchyass981
@itchyass981 2 года назад
Clear, consise and good use of examples. This helped me a lot, thank you!
@gomesfamily2.0
@gomesfamily2.0 3 года назад
I have watched so many videos from so many ppl and you are the only one I understand in all of your tutorials👌 ....Man from now on I'm not gonna listen to my professor and waste my time killing my brain from now on I can say I learned Java from Alex,god bless man!
@aperson4475
@aperson4475 4 года назад
4:57 Thought he would say "but it doesn't know what to poop". Also, thanks this video is amazing
@TobySullivan
@TobySullivan 4 года назад
yay
@321jeR
@321jeR 4 года назад
Dude great explanation. 👍 i used to learn java. But just for sake of study. Now i get involved with real java project so i catch it up quickly thanks to you 👍
@metin1504
@metin1504 2 года назад
even though this is 3 years after the video, i wanted to say how much i can appreciate your down to earth way of explaining these things. something about it being more like a conversation helps getting the point across way better. keep it up! edit: ahh just saw the "end of java tuts" video. hope the new path is the right one for you! btw nice miata ;)
@ahsanzafar125
@ahsanzafar125 4 года назад
Wow, you are a genius. Extremely helpful video. Thanks
@dv4346
@dv4346 3 года назад
You just gained a new subscriber! Wow, your explanations are crystal clear thank you so much!
@imanoo3
@imanoo3 4 года назад
You're just a very nice NICE guy! And you're an amazing instructor. Thank you for the diet version of this. Very helpful! From Hawai'i, with love :)
@JalerSekarMaji
@JalerSekarMaji 3 года назад
Guys, I will have technical interview for programmer job. its about 30 mins from now, need to refresh about OOP paradigm and found this. Thanks Mr. Alex! Wish me luck!
@wednesdaysangel1
@wednesdaysangel1 2 года назад
my project is asking me to write a getArea() method which calls to an abstract method in the inherited class, but it says to return null so that it can inherit from the superclass
@sivakrishnat5471
@sivakrishnat5471 3 года назад
We can also call poop object of chihuahua from abstract dog class. That is one more advantage of abstract methods. Dog litdog = new Chihuahua(); litdog.poop();
@spongewent1479
@spongewent1479 3 года назад
7:30 in java 15 you can make non-abstract methods in an interface just add the 'default' keyword (switch-case) before the return type
@beri4138
@beri4138 2 года назад
Sorry if dumb question but in what case is that useful?
@JVenom_
@JVenom_ 3 года назад
I’m doing abstract programming right now in a summer course we need to learn c++, python, JavaScript and Haskell in 5 weeks. And I come to ur videos cause it’s soo clear that it translates languages
@oovoo1995
@oovoo1995 4 года назад
this 8 mins explained way better than my professor's 45mins lecture
@NellieNotion
@NellieNotion Год назад
Honestly, my professors are horrible at explaining any of this. Thank you. I completely get it now.
@symonjohnflores5128
@symonjohnflores5128 4 года назад
This is very helpful. Thank you
@Kirtanpurohit
@Kirtanpurohit 2 года назад
BRUH! i have my mid terms exam tomorrow and i was really tired of indian guys teaching stuff, even though I'm an indian. thanks man.
@SadnanSanim00071
@SadnanSanim00071 3 года назад
// For this challenge, create an abstract class to define items that can be stored in a list. // The class should contain 2 references to items which will represent the next and previous // items (in the case of a linked list). // I.e., if you call your abstract class ListItem, then it would have 2 member variables of // type ListItem that will hold references to the next/right and previous/left ListItems. // // The abstract class will also need to hold a value - try to be as flexible as possible // when defining the type of this value. // // The class will also need methods to move to the next item and back to the previous item, // and methods to set the next and previous items. // // You should also specify a compareTo() method that takes a parameter of the same type as the // class and returns 0 if the values are equal, greater than zero if the value sorts greater than // the parameter and less than zero if it sorts less than the parameter. // // Create a concrete class from your abstract list item class and use this in a LinkedList // class to implement a linked list that will add items in order (so that they are sorted // alphabetically). Duplicate values are not added. // // Note that you are creating your own LinkedList class here, not using the built-in Java one.. really got this as a coding challenge for abstract classes lesson am i dumb for having almost no idea how to create those references like how do i point to them
@jethior
@jethior 4 месяца назад
OOH Alex Lee!!!!!!!!!!!!!!!!!!!!!!!!!!!!! I don't know why I understand only your tutorial with an open heart!! thanks, man for making my life easier. I appreciate you really.
@Ganeshkumar-on3cm
@Ganeshkumar-on3cm 2 года назад
Thanks!❤️
@hedgehog337
@hedgehog337 3 месяца назад
from Java 8 you may use default methods in interface for something like: public interface Vehicle { void start(); default void stop() { System.out.println("The vehicle is stopping"); } } or i don't know something?
@xyrxeii3846
@xyrxeii3846 2 года назад
omg, now im ready for my report XD
@rrsbunker
@rrsbunker Год назад
I swear to god I dont understand how abstract works, even after 1 whole semester of learning and trying to implement it. I avoid using it in my project because I'm afraid it will mess it up even more. But after watching this video, I feel like "bruh, it was that simple all this time...??" Thank you man. Wishing you luck on your life journey!
@GamerForeverChannel
@GamerForeverChannel 4 года назад
best tutorial I found in youtube for my exam haha! thank you sir!
@k4nful
@k4nful 4 года назад
As 99% of java tutorial about abstract and interface method you give how it's different but the MAIN QUESTION is why and when should we use abstract rather than interface and vice versa... That's the prinpal difference between real coder and student.
@banusha4898
@banusha4898 3 года назад
Many hours of classes is just within 9 mins....you explained clearly just like a friend explaining everything 10 mins before exam.
@rashmibalasooriya8447
@rashmibalasooriya8447 3 дня назад
Dude you are the only person who could be able to make me understand... the whole class looked at me like an idiot after telling nonsenses about abstract, so called "teaching"!! Super thankful ❤
@ayushmansanjeev5487
@ayushmansanjeev5487 2 года назад
Kinda like typedef struct in c
Далее
This Keyword in Java Tutorial #80
10:39
Просмотров 182 тыс.
Abstract Classes vs Interfaces (Java)
9:43
Просмотров 207 тыс.
#慧慧很努力#家庭搞笑#生活#亲子#记录
00:11
Getters and Setters Java Tutorial #84
14:12
Просмотров 499 тыс.
How principled coders outperform the competition
11:11
Learn How to Use Abstract Classes
17:28
Просмотров 67 тыс.
Being Competent With Coding Is More Fun
11:13
Просмотров 85 тыс.
Abstraction Can Make Your Code Worse
5:13
Просмотров 651 тыс.
#61 Abstract Keyword in Java
12:09
Просмотров 156 тыс.
Learn Java in 14 Minutes (seriously)
14:00
Просмотров 4,8 млн
Java Interface Tutorial
14:49
Просмотров 135 тыс.