And as you can see here we've got two other arguments here which are actually specific to this chat
class.
OK.
As you can see in line 18 and in line 19 100 in initialising those are instance variables here.
OK.
These That number of leks assignment operator number of legs this that can hunt other animals assignment
operator can hunt other animals.
OK.
So hopefully that makes sense.
And now let's actually scroll down here.
As you can see we've got another error here.
OK.
So here we are actually overwriting our Meffert that is inside of the superclass this cat class inherits
all of the features that are inside of this Animal class.
OK.
And this animal class inherits all of the features that are inside of this object class.
OK so this Kathe class indirectly inherits all of the features that are inside of this object class.
OK so we can actually access methods that are inside of this object class.
OK.
OK everyone.
Now let's go back inside the cat class as you can see here.
Now we need to actually put our own implementations inside these two string method.
OK.
And the Smurfette needs to return a value of type string here.
OK.
As you can see the return type of this method is strange.
So we need to return a value of type string.
Ok so I just need to type in here return.
Strange that format and an inside Apprentice's.
First of all I need to actually specify the formatting instructions here.
OK.
So inside the double quotes I can actually specify the formatting instructions.
OK.
So first of all I want to actually output the name of my cat object.
So first I need to just typing percent as so as you can see here this talken actually is for arguments
of type stream.
Ok so person as Colon again per s.
And then I want actually to output the color of my chat object.
So again persons as co-lead percent S and then Ivon to actually outputs the amount of speed of my chat
object to the screen percent as Colan percent.
And here I want to actually output the value of this amount of power instance variable to the screen.
So again present as Colan percent the.
And then I want to output the value of the number of legs instance variable to the screen.
So percent as Colan percent D.
And then I want to actually output the value of this boolean value.
Bell can hunt other animals.
OK so percent as Colan per cent B this time.
OK.
Person B is for actually variabilis of type Boolean.
OK so now I need to actually specify the arguments for these tokens here OK.
So first of all I need to actually put a value of type string here.
OK just putting two double quotes OK.
And then inside the double quotes I just type in name and then I specify the name instance variable
comma and then I actually putting two double quotes here.
Here as you can see if you need to actually specify So as you can see here this name instance variable
is for distortion.
OK.
So again we need to actually specify a value of type string here.
Color comma.
And then I refer to the name of the color instance variable comma.
As you can see here again it's actually putting a value of type string here.
So I just put into double quotes here and then I just type in speed comma.
And now I need to actually put a value of type integer as you can see person D.
Here is Torchin is for arguments of type integer k.
So I just need to put an amount of speed.
OK.
Comma.
And then I need to actually again put in a value of type.
Strange as you can see this talken is for arguments of types 3.
So I just need to put into double quotes here and that inside the double quotes.
I can just type in power.
OK.
Comma.
And then I need to actually put a value of type integer.
So as you can see here this amount of power is of type integer.
So I just refer to the name of the amount of power instance variable here.
Amount of power.
OK.
Comma.
So now let's actually create a new line here in order to make these values more readable.
OK.
So as you can see here I'm out of power.
And then again I need to put in a value of type 3 in here.
As you can see this token is for arguments of type.
Strange.
So I just need to put into double quotes here and then instead of double quotes I can just type in number
of.
Come on.
OK.
So as you can see here we've got this percent here.
So Vinita actually putting up a value of type integer here.
So I just referred to the name of the to the name of this number of X instance variable.
So I just type in number of Lex comma and then here again we need to actually putting a value of type
string here.
So I just put into double quotes and then inside it up called.
I just type in fight comma and then I mean to actually putting a value of type Boolean.
OK percent B.
So I just referred to the name of these can hunt other animals instance variable OK.
Can hunt other animals and then I put in a semi-colon at the end of my statement.
So as you can see here we've got some errors here.
OK.
As you can see we cannot refer to this name instance variable or colorings instance variable or this
amount of spit instance variable or maybe the amount of power or instance variable as you can see the
color of this instance variables is red and this means we have an error in our class.
So let's actually hover our mouse pointer over one of these are the read instance variables and see
what's the error.
Ok for example this name instance variable name has private access income.
That example that maters I saw that that app for that animal.
OK.
So it says that this name instance variable.
This is our instance variable that we declared inside this animal class.
OK.
And because inside this class we are actually inheriting all of the features and behaviors that are
inside this animal class into these chat class.
We actually access all of those instance variables and methods that are inside this element class.
OK.
Actually the doors are private parts of this animal class are actually part of this chat class but those
private parts are not visible to this class.
OK.
These private parts as you can see here.
These are only visible to these animal class.
We cannot actually access these instance variables from this cat's class.
OK.
Because this instance variables are declared as private.
OK.
So inside these chat class in order to solve this problem as you can see here it says These instance
variables are declared as private.
OK.
So we need to actually access the getters and setters in order to access the value of this instance
variables.
OK so we can actually access this good amount of speed method here in order to access the value of this
amount of speed.
Instance variable OK.
So inside this chat class here instead of just typing name instead of just referring to the name instance
variable which is declared as private inside the animal class we can actually type in jets name.
OK.
As you can see now the error is gone.
OK.
So here again instead of just referring to the name of this Karlov instance variable that is declared
inside this animal class which end just typing gets color ok and it's the same story for the amount
of speed instance variable.
Here if you are actually referring to the name of this amount of speed instance valuable and here I
can just type in amount.
Get em out of speed.
And again here we are actually referring to the name of this amount of power for instance variable and
we can actually place this variable name to get amount of power.
OK.
And as you can see now the arrow is gone and we can easily run our project.
OK so now let's actually go back inside the main activity that Java file here.