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
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! :)
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
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.
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
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
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!
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!!
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.
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.. :)
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!
**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.**
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
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.
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. 🤠
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.
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!
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 😀.
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.
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?
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
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!
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.!!
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!!
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 !
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!
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 👍
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 ;)
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!
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
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();
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
// 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
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.
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?
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!
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.
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 ❤