@Misan tropo exactly what deepness ? You just learn Inheritance in this video, you just need to know that Extends is the keyword used for Inheritance (that means allowing subclasses (children) to access superclasses (parents) behavior). I don't think that need to take 3-4 hours to explain.
Many of my friends who know about extends tried to explain me about its functionality but I was not clear. Your 9.25 minutes make me so clear I hope I will not forget it. Thanks a lot. I will be always with your tutorial. I recommend all beginners to professionals your tutorial to make easy concept. Thanks again and hope you will keep going on.
Just saved me 30 pages of reading and explained a 3 hour lecture in less than 10 minutes. Your vidoes (remembered to spell something wrong) are awesome! I am watching all your tutorials and they are all phenomenally helpful!
Bucky, you are so awesome that even my professor uses your videos in class. Thanks for helping students like me who are stuck with ineffective teachers
im doing eclipse and have a test and you are helping me get ready for the test and explaining things better than my actual uni lecturers thank you so much!!!
Me and mornings don't get along, especially on a Monday morning for OOP class. This is the simplified the version of the lecture that I had just 5 days ago. Thanks man this really help me since whenever I ask my instructor, I'd be given a really complicated answer.
If your having trouble remembering everything but you understand the concepts then take your time to play around. If you rush through the tuts then you won't have time to remember anything. I take a intro to CS class and we do things VERY slowly. But we get a lot of problems and having to work through javax.swing can be challenging at times but you learn by solving problems. Test yourself. Maybe, while going through buckys tuts, develop a basic program but build upon every time you learn something(like a calculator or something :) )
Sometimes I feel like I am not capable though.. I don't know whether it is because this is my first time learning this, and I will only just enroll to the college. Sometimes I think I can't make any program..
Guys, instead of using the "private" modifier, you can use the "protected" keyword, so classes from the same package as the superclass and the subclasses of it can access the method "eat" try it: protected void eat(){... Great work with this tutorials, Bucky, thank you from Brazil.
@@RaqibZaman you mean inheriting the superclass constructor right? public SubClassName() { super(); } just do it like that, correct me if i'm wrong im also new to java
@@briandacallos4234 The purpose of a constructor is to easily make objects. If you made a super class called Bird and it had instance variables: String color; int wingspan; Then you made the constructor : public Bird(String color, int wingspan) { this.color = color; this.wingspan = wingspan; } THEN you made a subclass Pigeon extends Bird and you wanted a constructor exactly like your Bird super class, but maybe you wanted to add a diet variable: String diet; You make the sub class (Pigeon) constructor take on the same values as your super class by adding super() in the new constructor: public Pigeon(String color, int wingspan, String diet) { super(color, wingspan); this.diet = diet; } You can then make your objects as such: If you want just a Bird ---------------> Bird b1 = new Bird("white", 10); If you want a Pigeon -----------------> Pigeon p1 = new Pigeon("gray", 11, "bread crumbs"); You can't inherit the constructor from your super class, but you can incorporate the variables found in that super class into a new constructor with super()
it's easy when you implement simple methods and call them, however when dealing with super and sub constructors, there when all the confusion begins, but you explain it way a lot better than set of 1000p books
Yo man! this is amazing and so are all of your videos for the Java basics, it really made me understand all the nonsense from school! ... you sir are a legend and I have no words to thank you!
Hey bucky been watching your videos for a long time now. Guys If your watching this I'm majoring in CS and currently in a role that requires great knowledge of programming. When I need to I always come looking for his tuts. Thanks!
hey bucky! i wanna thank you for helping me out in my college studies man..i am the second year and i suck at java but after watching your tutorials...man i feel good! for now...
Excellent tutorial. I have watched many java tutorials, but this is the best. Thanks a lot guys for this clear tutorial. I have watched all Ur 87 tutorials, thanks a lot..Keep it up guys
I was waching a guy who had made a playlist for all buckys awesome vidz and he missed this tutorial!(it has to be the reason that the next tutorial is AWESOME!)!
"So erm... make sure you spell a couple of things wrong there!" Finally someone who teaches people to not be pedantic about spelling. It's so limiting to a artist. :-)
And you can overLOAD methods in the superclass! Put this as a parameter in the food class method: public void eat(int x){ and then call tunaObject(); tunaObject(1); and the second one calls the food method instead. Java is pretty nifty!
ok, you can extends or also known as inheritance almost anything. You can extends variables as well. Private can be access within the class and protected can be access within the class and all subclasses. That's why we have Protected, private and public :) Hope this helps others. :)
Thanks for the video! I agree with a couple of these posters about formal education trying to overexplain things. I'm in a grad course for beginning OOP using Java and a lot of the textbook chapters, videos ,etc., just seem excessive. I get that they're probably trying to give a full, technical overview of each subject, but I'm usually left with more questions than answers. I'm subscribing and will probably check out a LOT more of your videos. Cheers!
I love how you don't correct typos haha. Makes me feel better about my dyslexic brain constantly spelled length like this...lenght. I cannot tell you how many times I have done this.
Note this: A subclass inherits all the members (fields, methods, and nested classes) from its superclass. Constructors are not members, so they are not inherited by subclasses, but the constructor of the superclass can be invoked from the subclass.
this 10 mins video override the 2 - 1 hour and 20 mins session from my CS1351 class
lol yea
ay also watching this as a CS student! Taking CS125 at UIUC here HAHA
if(video > 9 mins && video < 10 mins)
{
System.out.println("what ever NO SHOW Comedy said");
}
else...
You miss @Override
u are right 45 minute lecture in my college were overrode by this 10 minute video
i don't know why i pay for my education if free youtube videos explain it x10 better
* I don't know why I pay for my education when free RUclips videos explain things 10x better.
mang oac lol
Oh god yeah.. what're the odds hahahah What about you
Bruh, you're not alone lol...
You on facebook? Add me up.
mang oac Good game bro, to bad good grammar didn't get anyone anywhere in programming.
"make sure you spell some things wrong" hahaha I love this guy
6:14
Its 2014 and this still the best layman terms lectures hands down!
nahhhh its mid 2017
yup
2018 already
hi from 2018
Hi from 2020
I swear my computer science prof can't teach anything, all I have learnt is from you.
He marks really easy though :D
AP Computer Science Teacher here. Thanks for these videos. I share these with my students and they come in handy!
I watched my professor's video for an hour and learned nothing. You sir explain everything perfectly clear in 6 mins.
typical 10 minute video does better than my 2 hour lecture. cheers.
we spent 4 hours, I kid you not.. 4 hours on inheritance.
lol hahahaha
+Ceri Westcott inheritance, polymorphosm
We spent 3hours on how to run on cmd line (2nd video) so yeeah D:
@Misan tropo exactly what deepness ? You just learn Inheritance in this video, you just need to know that Extends is the keyword used for Inheritance (that means allowing subclasses (children) to access superclasses (parents) behavior). I don't think that need to take 3-4 hours to explain.
Our deadline for this one is till 15... but its hard for me cause we’re only given printed module with limited examples
Many of my friends who know about extends tried to explain me about its functionality but I was not clear. Your 9.25 minutes make me so clear I hope I will not forget it. Thanks a lot. I will be always with your tutorial. I recommend all beginners to professionals your tutorial to make easy concept. Thanks again and hope you will keep going on.
My lecturer took 4 hours to explain this... You are a life savior
Just saved me 30 pages of reading and explained a 3 hour lecture in less than 10 minutes. Your vidoes (remembered to spell something wrong) are awesome! I am watching all your tutorials and they are all phenomenally helpful!
"Anytime you want to inherit crap from another class..." Lol
well this is a lot easier and faster than sitting through class lecture. A+
Bucky, you are so awesome that even my professor uses your videos in class. Thanks for helping students like me who are stuck with ineffective teachers
u make Inheritance much more easy to understand !! thank you
Bucky is a complete expert on explaining things well. My lecturer could never do this. We love you Bucky!
im doing eclipse and have a test and you are helping me get ready for the test and explaining things better than my actual uni lecturers thank you so much!!!
the quick 10 minute vid formats are really good and make it easy to digest. well done
your 9.24min kicks 2 hrs of lectures! thanks a million!
bucky boy i love your tutorials but they make me so hungry.
win Gold tuna Apple chicken lol
Me and mornings don't get along, especially on a Monday morning for OOP class. This is the simplified the version of the lecture that I had just 5 days ago. Thanks man this really help me since whenever I ask my instructor, I'd be given a really complicated answer.
If your having trouble remembering everything but you understand the concepts then take your time to play around. If you rush through the tuts then you won't have time to remember anything. I take a intro to CS class and we do things VERY slowly. But we get a lot of problems and having to work through javax.swing can be challenging at times but you learn by solving problems.
Test yourself. Maybe, while going through buckys tuts, develop a basic program but build upon every time you learn something(like a calculator or something :) )
Sometimes I feel like I am not capable though.. I don't know whether it is because this is my first time learning this, and I will only just enroll to the college. Sometimes I think I can't make any program..
Guys, instead of using the "private" modifier, you can use the "protected" keyword, so classes from the same package as the superclass and the subclasses of it can access the method "eat"
try it:
protected void eat(){...
Great work with this tutorials, Bucky, thank you from Brazil.
Adding to this, constructors are never inherited.
good one!
@John Rhaenys Could you give an example in code how "super ()" allows for inheritance?
@@RaqibZaman you mean inheriting the superclass constructor right?
public SubClassName() {
super();
}
just do it like that, correct me if i'm wrong im also new to java
@@asyrafsufi4108 but i can enherit the constructor for my super class ?
@@briandacallos4234 The purpose of a constructor is to easily make objects. If you made a super class called Bird and it had instance variables:
String color;
int wingspan;
Then you made the constructor :
public Bird(String color, int wingspan) {
this.color = color;
this.wingspan = wingspan;
}
THEN you made a subclass Pigeon extends Bird and you wanted a constructor exactly like your Bird super class, but maybe you wanted to add a diet variable:
String diet;
You make the sub class (Pigeon) constructor take on the same values as your super class by adding super() in the new constructor:
public Pigeon(String color, int wingspan, String diet) {
super(color, wingspan);
this.diet = diet;
}
You can then make your objects as such:
If you want just a Bird ---------------> Bird b1 = new Bird("white", 10);
If you want a Pigeon -----------------> Pigeon p1 = new Pigeon("gray", 11, "bread crumbs");
You can't inherit the constructor from your super class, but you can incorporate the variables found in that super class into a new constructor with super()
Bucky is the best.
You have no idea how helpful these tutorials are, thanks a bunch man!
9 fuckin years and his course still holds a great value..... awesome lecture
10 years later and these videos are still solid.
it's easy when you implement simple methods and call them, however when dealing with super and sub constructors, there when all the confusion begins, but you explain it way a lot better than set of 1000p books
Bucky should get an award for being the best programming instructor on planet earth
You are the best teacher..Thanks a lot.. concepts explained so beautifully..
Oh Maaan, Thank you so much, for helping me to understand this very complex Java World
Bucky you are a genius!! This tutorial has cleared up sooo many java mysteries. Brilliant!
I learn more from you than i do in the $1500 Java class I'm currently taking!!!
I am so beyond grateful for these videos you make it so easy to understand
Hats off Coach ! You are better than our Corporate Traininer with 25 years Experience.
bucky - you have a real knack for explaining things - too bad my java teacher couldn't explain it this well
One left for the GUI! Let the party begin...
2 days of lecture explained in 10 mins...
SALUTE!
Yo man! this is amazing and so are all of your videos for the Java basics, it really made me understand all the nonsense from school! ... you sir are a legend and I have no words to thank you!
8:53 "whenever u wabt to inherit CRAP from another class"----bucky
looool
Great job! You make hard concepts really easy to understand for all levels of programmers!
Hey bucky been watching your videos for a long time now. Guys If your watching this I'm majoring in CS and currently in a role that requires great knowledge of programming. When I need to I always come looking for his tuts. Thanks!
hey bucky! i wanna thank you for helping me out in my college studies man..i am the second year and i suck at java but after watching your tutorials...man i feel good! for now...
"Make sure you spell a couple things wrong there"
Thank you brother for zooming in, knowing brothers watching on phones
Great tutorial! Amazing clarity with detail and simplicity - ALL IN ONE little package! Thanks and keep it up!
I had almost given up on programming until I came across these tutorials. Bucky for president?
Excellent tutorial. I have watched many java tutorials, but this is the best. Thanks a lot guys for this clear tutorial. I have watched all Ur 87 tutorials, thanks a lot..Keep it up guys
I was waching a guy who had made a playlist for all buckys awesome vidz and he missed this tutorial!(it has to be the reason that the next tutorial is AWESOME!)!
I'm doing my part time Degree in IT, the tutors are sucks, but you are my saviour!
TQ Bucky
lol youtube > higher education :o
Michael Gallego same thing in EPFL Switzerland.. GO youtube GO
Great video. I am going to get an A in my java programming classes because you teach it so well. Good luck in your endeavors.
I have never seen tuna, apples and potpie go so well together
you are great in explaining this. and everything else. I look at your tutorial to help me study for my final and exams. thank you.
"So erm... make sure you spell a couple of things wrong there!" Finally someone who teaches people to not be pedantic about spelling. It's so limiting to a artist. :-)
If you want to teach in RUclips You should born as a teacher like this guy!
I don't know what I would with java class without you after God of course
Thank you ❤️🙏
And you can overLOAD methods in the superclass! Put this as a parameter in the food class method:
public void eat(int x){
and then call
tunaObject();
tunaObject(1);
and the second one calls the food method instead. Java is pretty nifty!
I am the only one who thinks that his voice is similar to Walter Jr's voice from Breaking Bad?
Hahaha
Kid, you just changed my life.
sounds more like jesse pinkman when he makes his jokes
he may'have inherited the voice from walter Jr.
I see what you did there! wow... why did I find this so funny...
wow thanks soooo mutch this video helped me so mutch i could have just watched this insted of HOURS of classes
"this is the easiest thing in the world"
my prof: Spends 2 lectures on inheritance
Now this is a simple yet effective tutorial
books make this sound so much more complicated than it really is, thanks man.
iv been a year in class and not understanding, finally I get it thank you!
He's back. 2020 is no longer bad.
ok, you can extends or also known as inheritance almost anything. You can extends variables as well. Private can be access within the class and protected can be access within the class and all subclasses. That's why we have Protected, private and public :)
Hope this helps others. :)
LEGEND explained in simplest words
You are a life saver. You're making it sound soooo easy.
Wow that was buckylicous:D. You really did a great job on explaining inheritance;-). Thank you alot Bucky! And now lets get to video 50 ^^.
Yo Man!!! T_T your tutorials really helped me in my prog. project .Even though this tutorial seems old but its GOLDEN.
"Every single different clath" love it Bucky!
How could you possibly give such a helpful, easy to understand video a thumbs down?
zSatherz people were holding their devices upside down, and they thought they pressed the like button
Thank you for your videos! I don't know what I'd do without them!
Thanks for the video! I agree with a couple of these posters about formal education trying to overexplain things. I'm in a grad course for beginning OOP using Java and a lot of the textbook chapters, videos ,etc., just seem excessive. I get that they're probably trying to give a full, technical overview of each subject, but I'm usually left with more questions than answers.
I'm subscribing and will probably check out a LOT more of your videos. Cheers!
I love how you don't correct typos haha. Makes me feel better about my dyslexic brain constantly spelled length like this...lenght. I cannot tell you how many times I have done this.
+nicholasbraud1986 what is the lenght of the times you spelled it wrong? :) ;)
That was totally clear! There was nothing confusing about this at all! Thanks!
Bucky you are the BEST! Thank you so much for everything :)
Your tutorials always make me hungry :D
a very simple n easy to understand tutorial. Apart from that I love the way u say "Potpie"..:)
Thank you so much... seriously i don't know how to thank you!!! God bless you
That bloody extends keyword, now I finally understand!
bout time you clear up the proper use of private. ive been confused for like 30 videos haha
my teacher took 4 h to teach us this ! and here in just like 10 m and very simple! u should be a Professor rly
Thank you my friend, simplest tutorial I have ever seen in CS. Definitely earned a sub from me :)
wow best tutorial so far from Greg...cleared everything up!
Thank you so much! Your video helped me immensely! It's clear, concise, and easy to follow
learnt more from RUclips than college, and youtube does not charge me 10 grands a year.
bruh i swear this man is a god
amzing how you teach stuffs in 10 min that our professors are not able to in 1 hour
thanks man, much better than my class im paying hundreds of dollars for xD
you are the best, better than my lecturer 😎😎
U cleared so much shit up for me then reading this new java book I got. Thx, keep it up man.
thanks a lot it help me understands better for my revision before final exam .
this is perfect...
now i simply get it LIKE MAGIC
you are the best instructor ever!
I understand inheritance but when making bigger projects, I don't :/
+TeleTubbie Luver Practice Practice Practice Practice
Roger Nkosi I now understand yay :D
+TeleTubbie Luver Practice helped a lot I guess.
Roger Nkosi indeed
It can be a mind f**k especially Polymorphism
Thank you teacher. You are by far the best!
Bloody hell on a biscuit, you teach better than my instructor.
wow dude, thanks for the vid, you explained this way better than my compsci prof did
Note this:
A subclass inherits all the members (fields, methods, and nested classes) from its superclass. Constructors are not members, so they are not inherited by subclasses, but the constructor of the superclass can be invoked from the subclass.