 So we just started to talk about this idea of class abstraction in encapsulation and Another way we can think about it is this idea that Someone's gone out and built this stuff for us. And so we don't care anymore You know again if we think about just Microsoft Word or Microsoft Excel or Windows or the Mac OS any program that we're using Just in real life. I'm using open broadcaster software I don't need to know Sort of the back end to use this thing the same kind of concept comes on with programming We can actually do this idea this this term this $5 term of Encapsulation because what this does is this now is telling me okay? Well, there's some stuff going on in the background. I don't need to worry about it Let's think about the scanner class for a second. We you know, we have been using the scanner class scanner Input now just kind of shorthand it there, you know, say for example, I've already instantiated it we've been going and saying input Dot next end Now do we know what next in does do we know what's going on inside that program? No We just know that if I do next end retrieves and in from user from the console so That's where that stuff comes into play. All right. Let's see in from the user. There you go. Now you can see it so again, that is Something that was built beforehand and we don't care how it works. We just kind of utilize it Same kind of idea. Here's a here's UML diagram that I've already whipped up for us and it's called card. Let's think about the idea, you know I'm playing blackjack or poker or solitaire I Need to probably have something like this, you know, I've got my board and I've got my player But I've also got this card Class and cards are you know have a lot to them if we think about it Let me actually move this down a little bit so you guys can see it a little bit more There we are That looks a little bit better There we are boom boom boom so I've got this card class and so How do I start to interact with it kind of starts a matter, but I don't know the back end I don't know how it all works again some developers gone in and done that for me So I come in and I just make my own card. I make an ace spade equal new card And just for my sake, you know, let's assume that I can use my No arg constructor to do that now I see that I see that I have a no arg constructor And I also have one where it's giving me, you know different kinds in some strings Well as we move forward you can see I can actually see all of the different methods That this class has available to it. So all of a sudden. All right. Well, I don't know what those mean Typically when we look at a UML or we look at Encapsulation we then see there are a few definitions. There's a few explanations as to what's going on So the ace of spades for example in blackjack that kind of has a different value it's not just a one even though it's a single character, but I Would probably want to do something like ace sp. You know my ace spade dot Get's was it called get black Jack value parentheses and I don't care what goes on in the background I I assume that that has all been taken care of by a developer Somewhere else and so all of a sudden I have this ability to say well Give me the value give me the blackjack value of my card my instance of a card And so I see that and I get that and it's pretty nice