 So once again everything in Java is an object and so we We start to look at everything that we built so far. So say for example, we've built Sort of scanner objects We've built We've utilized the wrappers so the character wrapper and Something like integer So these are again just objects But one of the things we get into is now this idea of something known as Inheritance in inheritance is just that sense of now We're saying that one object can come from another object. It can actually inherit from another object And so we get a new Slu of words that we actually start to build with we start with something called my superclass and my subclass Now super and sub those can also Be called parent and child you'll hear both used in the real world inside of My lectures everywhere But how they start to interact is well, what we're looking at is this superclass This is actually going to be sort of what gets inherited by the child class by the subclass If we were to think for example Something very generic very very simplistic. We could make a class called Person Now, you know person has with it probably a name Probably has some address as well Probably has a phone number. Well and an email. We'll we'll say that it's got those qualities about them and then it probably has some Person constructor and then a few of his getters. So I'll just say get dot dot Now again person very generic very very conceptually generic thing, but Let's start to make this sound a little bit more in-depth Let's think about the fact that obviously if you're kind of watching this video. You're probably a student Now We're all gonna agree for a second that a student is a person We can all say that yeah a student's a person I can get that that I can get behind that You know can't a dog can't go to college until airbud Goes to college and I don't think there's any college that would accept them up, but whatever Now here's where things different Notice how again person has this name variable this guy right here when I design out a Model when I design out an object that inherits I'm gonna go ahead and throw out this word here that extends Something We no longer we don't actually have to say the variables and Methods with it. I can just go ahead and throw out something like courses They have an ID obviously for being in the school maybe a balance, you know how much they owe for a given class and An enroll With draw method they have these two methods with them. So how do I start to build this out? Again, we start the same way we start with simply our public class Student, but then this is why I threw this word up here We actually now add in a new fancy key word instead of just going straight into my curly braces I actually add a few extra words here. I start to say extends Person and so that is Inheritance in a nutshell is that here I've made a class called a student No, I'll change colors. I've made a class called student that is an extension of the person Class now I have to make this person class obviously, but now I can start to work inside here Now again, let's assume that I have a student class And I have a student constructor Inside there. I have access first off to these guys just these guys We'll talk about using super in just a little bit, but I can basically now say ID Equals and we'll just say it's a string zero zero zero one