@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!
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.
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!!!
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..
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.
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
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
@@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()
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
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!
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 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!)!
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. :)
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.
"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!
@whitebenji Yea your right. Protected is visible to extended classes. Also a note. You can make private fields and have a public "getter" method to get each field. e.g. private int x; public int getX(){ return x;}. This means it will be available for all classes.
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
"make sure you spell some things wrong" hahaha I love this guy
6:14
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 TH-cam 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.
I swear my computer science prof can't teach anything, all I have learnt is from you.
He marks really easy though :D
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
typical 10 minute video does better than my 2 hour lecture. cheers.
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.
"Anytime you want to inherit crap from another class..." Lol
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.
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!
My lecturer took 4 hours to explain this... You are a life savior
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.
well this is a lot easier and faster than sitting through class lecture. A+
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!!!
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..
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.
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
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
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!
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!
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 boy i love your tutorials but they make me so hungry.
win Gold tuna Apple chicken lol
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!
You are the best teacher..Thanks a lot.. concepts explained so beautifully..
Bucky should get an award for being the best programming instructor on planet earth
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
Bucky is the best.
You have no idea how helpful these tutorials are, thanks a bunch man!
Oh Maaan, Thank you so much, for helping me to understand this very complex Java World
2 days of lecture explained in 10 mins...
SALUTE!
9 fuckin years and his course still holds a great value..... awesome lecture
10 years later and these videos are still solid.
Hats off Coach ! You are better than our Corporate Traininer with 25 years Experience.
If you want to teach in TH-cam You should born as a teacher like this guy!
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...
I learn more from you than i do in the $1500 Java class I'm currently taking!!!
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
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!
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!
Bucky you are a genius!! This tutorial has cleared up sooo many java mysteries. Brilliant!
I am so beyond grateful for these videos you make it so easy to understand
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!)!
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.
I don't know what I would with java class without you after God of course
Thank you ❤️🙏
bucky - you have a real knack for explaining things - too bad my java teacher couldn't explain it this well
Now this is a simple yet effective tutorial
Great tutorial! Amazing clarity with detail and simplicity - ALL IN ONE little package! Thanks and keep it up!
Yo Man!!! T_T your tutorials really helped me in my prog. project .Even though this tutorial seems old but its GOLDEN.
Great job! You make hard concepts really easy to understand for all levels of programmers!
One left for the GUI! Let the party begin...
LEGEND explained in simplest words
"Make sure you spell a couple things wrong there"
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. :)
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
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.
books make this sound so much more complicated than it really is, thanks man.
8:53 "whenever u wabt to inherit CRAP from another class"----bucky
looool
"this is the easiest thing in the world"
my prof: Spends 2 lectures on inheritance
wow thanks soooo mutch this video helped me so mutch i could have just watched this insted of HOURS of classes
Thank you for your videos! I don't know what I'd do without them!
He's back. 2020 is no longer bad.
Thank you brother for zooming in, knowing brothers watching on phones
I have never seen tuna, apples and potpie go so well together
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
That was totally clear! There was nothing confusing about this at all! Thanks!
You are a life saver. You're making it sound soooo easy.
bruh i swear this man is a god
"Every single different clath" love it Bucky!
iv been a year in class and not understanding, finally I get it thank you!
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...
a very simple n easy to understand tutorial. Apart from that I love the way u say "Potpie"..:)
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? :) ;)
"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. :-)
Bucky you are the BEST! Thank you so much for everything :)
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!
That bloody extends keyword, now I finally understand!
Your tutorials always make me hungry :D
Thank you so much... seriously i don't know how to thank you!!! God bless you
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 ^^.
wow best tutorial so far from Greg...cleared everything up!
you are the best instructor ever!
I had almost given up on programming until I came across these tutorials. Bucky for president?
you are the best, better than my lecturer 😎😎
Thank you so much! Your video helped me immensely! It's clear, concise, and easy to follow
Thank you teacher. You are by far the best!
this is perfect...
now i simply get it LIKE MAGIC
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
thanks man, much better than my class im paying hundreds of dollars for xD
Thank you my friend, simplest tutorial I have ever seen in CS. Definitely earned a sub from me :)
thanks a lot it help me understands better for my revision before final exam .
you are way better than my professor. thank you
learnt more from TH-cam than college, and youtube does not charge me 10 grands a year.
@whitebenji Yea your right. Protected is visible to extended classes. Also a note. You can make private fields and have a public "getter" method to get each field. e.g. private int x; public int getX(){ return x;}. This means it will be available for all classes.
U cleared so much shit up for me then reading this new java book I got. Thx, keep it up man.
bout time you clear up the proper use of private. ive been confused for like 30 videos haha
Inheritance is a big part of learning programming
wow dude, thanks for the vid, you explained this way better than my compsci prof did