Inheritance in Java Tutorial #86

preview_player
Показать описание

This is how to use inheritance in java. Hopefully, what I've taught you will help you use inheritance in your java programs.

Inheritance is creating a generic object that other objects can use.

Inheritance in java can be tricky at first... But SURELY you'll get it :) If you followed along, congrats! You learned inheritance by-doing!

I hope you enjoyed this inheritance in java tutorial! I like to have a nice mix of java tutorials and actual projects for you all :)

Was this able to help you learn inheritance in java?

Disclosure: The Springboard link provided is linked to my affiliate account & supports the channel.

~

Alex Lee
Рекомендации по теме
Комментарии
Автор

I love how you start every video by calming us stressed-out students down. Really makes me feel better :)

SnobbyLion
Автор

"I know how to make a for loop... but how is that gonna help me make a mouse?" the most realest shit ever said

keving
Автор

Went to a 1.5 hours university lecture to understand this. Professor ended up confusing everyone of us, we started stressing out. Came down on Youtube and found out this legendary channel. A 10 mins video to the point and precise and this topic is actually so simple! University is a scam fs

ankonbiswas
Автор

Hey alex...i was in the military and did HVACR work for the last 3 years but was looking for a career change to something more rewarding. i just started my coding bootcamp jan 13th, its a four month program. i have been watching your videos for extra study materials in the evening and they have been very helpful so far. i have also shared them with some classmates as well. keep up the good work!

ndought
Автор

This is literally the clearest explanation I've seen on the concept of inheritance. Have been struggling on this concept for almost a month.

bradleyli
Автор

WHY HAVEN'T I DISCOVERED YOUR CHANNEL EARLIER !! thanks alot this was so helpful !!

yixingsikram
Автор

1:45 Initial example: create multiple gaming mice as objects in this project
2:17 Set up with empty classes, no main (no inheritance)
2:41 Starting with mouse object 1 (no inheritance)
3:26 Mouse 2 object + special features (no inheritance)
3:52 Mouse 3 object + special features (no inheritance)
4:18 Overview of the 3 mouse objects and how inheritance can save on redundant code
4:45 Solution to making gaming mice at scale: making a generic mouse class with inherited code
6:02 How to use inheritance: generic mouse with its properties applied to any number of other mouse objects
6:11 How to use inheritance with other classes (extends)
6:35 Creating a main method to test
6:40 Creating first mouse and how to view all the generic methods in scope for another mouse class (using the main method)
7:06 How inheritance can access methods not visible in the individual mouse classes
8:05 How to also access specific properties for an individual mouse class
8:25 What inheritance does for programs plus real-world examples e.g. cars
9:19 Summary of what inheritance is (using methods and properties from a generic class and making different versions of them)

latedeveloper
Автор

Thanks man, you simplify things in a way that I can grasp

ktown
Автор

Spent one year in a coding bootcamp. Everything went over my head. 3 days with your videos and I feel like I could actually start looking for a coding job soon.

ethanlyons
Автор

when he said "you're gonna be ok because I'm gonna walk you through" my heart felt that T_T #CoronaOnlineFinalzSuckkk

AnaitiArauz
Автор

i've got a 4-hour java exam in an hour, watching your playlist in 2x speed, you da real mvp

kristorastas
Автор

It is strangely comforting to be told by the java tutorial I’m watching that I’ll be ok.

bscorvin
Автор

This was super helpful, especially during the quarantine that's going on right now. Definitely subscribing to your channel.

ellie-
Автор

I'm in 10th grade, your videos not only boosted me 1 year above the rest of my class, but inspired me to work on my own projects which boosted me 2 years (and more) above my class.
Every time I hear "you probably have a test coming up", I think to myself "I do have a test coming up, in around a year"
I'm so happy I found you when I started learning by myself.

drorzenerd
Автор

Reading a boring website with absolutely no design or creativity < Watching a fun youtube tutorial that actually grabs my attention.

Thank you!

marialois
Автор

best thing i’ve ever done is watch ur videos while i’m on break i feel like i’m still learning

bubble
Автор

I have never thought that I would thank you to someone to feels me like I was an idiot. So, thank you Alex. You really helped a lot understanding its philosophy.

MrZeybel
Автор

I cannot stress this enough, but your videos have helped me to understand things so much better! As noobish as this may sound, I'm taking a Coursera course and all the instructors/professors on there make ZERO sense to my pea brain. But then I come over here to watch your videos and I understand everything as if I was in middle school all over again. It just clicks so well! Thanks for your guides! (:

juanpalmtree
Автор

Nice one dude, you're so helpful, I started learning Java 3 days ago outside of school and am almost as confident as I was in python which I have been learning for 2

tombean
Автор

Your examples are very calm and not complicated. Truly helpful.

RandomGuy