So as you can see here dismembered actually returns a printable representation of this object.
OK.
So this next class refers to that specific class.
For example our Animal class.
OK.
So if inside the Animal class this is our Animal class and that's our class here refers to that.
And in my class for example if you want to actually override this method from another class.
So inside the Animal class you are actually 18.
Dismiss it.
OK.
So I get class that gets named Plus at slanged plus integer plus integers that are two hex string.
Ok so I don't want this code to be executed in my own code.
Ok so I just need to delete this return that to a strange method here.
OK.
As you can see here this super key word here actually fares to the superclass to the class that we are
actually inheriting this method from.
So this super refers to the Object class.
OK.
And here as you can see it says Return superstar to history.
And it means that return the value of the execution of this line of code here.
OK.
So when you say return superhet that was thrilling.
It means that it's going actually only execute this line of code here.
OK return gets class that gets named plus signed plus integer that to heggs string has scored.
So I don't want this code here to be executed.
OK.
Return get class that gets name plus sign plus integer that will heggs stream.
OK so then you say return super that start to strange.
It means that this super refers to the superclass.
This object class datastream refers to the implementation of these MFL.
OK so this is the implementation of this method.
Ok this line of code is the implementation of that method.
So I don't want this code to be executed so I just need to delete this line of code here and here.
I can actually put in my own instruction as my own implementations inside these two string Meffert.
OK so I just want to type in return as strange Dadds format and an inside Apprentice's.
I need to put into double quotes percent as Colan percent as space percent as Colan percent as space
person the space per cent the OK.
And then I need to put in a comma here and now I want to actually specify the values that is going to
be related to these tokens here.
OK.
So for the first argument as you can see this person is to put in a value of type A strange name.
OK come on.
And for the second token as you can see here I need to put in another argument of type A strange name
or refer to the name of this name instance variable comma.
And my first argument again is going to be of type as strange.
So as you can see here it is Fred Torchin as you can see is present as.
So I need to actually put in an argument of type as strange.
OK so I just need to put it into double quotes here.
Caller.
And then comma color.
OK.
So again I'm putting a comma here and here I need to actually put in.
So as you can see here this color here is four.
These are token here percent as OK.
So because I actually put a colon here I don't need to actually put a colon here and here.
And for this token here percent the I need to actually put in an argument of type integer.
So amount of speed comma.
And for this token here again I need to put in an argument of type integer amount of power.
OK.
And then I need to put in a semicolon at the end of my statement.
OK.
OK whenever I call this Smurfette it's going to actually give me a human readable is 3 and about those
are valuable or objects.
OK.
So this is the job of this two string method and this effect is from the from this object class and
we are inheriting this method from the Object class.
And that's why we actually put this house at sign over right.
Key word here.
OK.
We are redefining or overwriting the Smurfette inside our own class.
You are actually putting our own implementations inside this method.
OK.
So hopefully that makes sense.
So let's actually go inside the main activity that java file.
And here I want to actually access the Animal class and create an object from this animal class and
then output those values to the screen.
OK so now let's actually create an object from this animal class.
OK.
So inside the main activity that Javal and inside the inside the uncreate method here I need to refer
to the name of this animal class animal.
And here I need to actually give a name to this object.
For example animal one and I need to put in an assignment operator here and then I need to actually
put in the new key word here.
And again I need to actually defer to the name of this Animal class.
Ok so I need to actually putting up a semi-colon at the end of my statement.
So now as you can see here it's now showing us an error.
The Android studio is now complaining.
Why.
Because inside the animal class I've actually created a constructor that is going to actually accept
for arguments.
OK.
And when ever that we want to actually create an object from this animal class this constructor is going
to be called.
So we need to actually putting those arguments here.
OK.
So the first argument must be of type as string.
OK.
And here I need to specify the name of this animal.
So I just need to put in two double quotes here and the name of this animal is for example Tiger.
And then I need to put in a comma here.
The second argument I must specify the color of this target tiger.
OK.
So I just need to put into double calls here so excited about cotes I can just type in orange for example.
And that again I need to put in a comma here.
And my first argument must specify the amount of speed of this object.
OK.
As you can see here in amount of speed of type and so I need to put in a value of type int here.
For example number 60.
OK.
And then I need to put in a comma here and here again I need to actually put in another argument here
of type int and here I need to actually specify the amount of power of this object here.
As you can see this argument is of type int.
So I need to actually passing a value of type for example number 80.
OK so now let's actually create some objects from the text view class and then refer to these components
inside this screen here.
Ok for example this animal takes the view here.
So in so the main activity that you are here I need to actually create some text view objects so I can
need to actually first to the name of the text your class and the name of my object is TXI the animal
and assignment operator here an assignment operator here.
And then I need to actually put in a pair of round brackets.
So inside and out brackets I need to actually cast this object to a text you object.
I talked more about casting objects later in this tutorial.
But for now just typing text view.
OK everyone.
Now let's actually create some text you objects.
So first of all we need to refer to the name of the text you class and then we need to actually give
a name to this object to the animal.
And then we put in an assignment operator here and then mean to cast this object to a text you object.
Talk more about casting objects in this tutorial.
But for now know that you need to actually cast this object to a test you object.
OK.
And then when you type in here find view by id r that ID that is the animal.
OK.
And then I need to put in a semi-colon at the end of my statement.
And again I need to refer to the name of the text your class.
OK.
The and my second component is Chat chat and then I put in an assignment operator here takes to find
the ID are that Id dot the chats.
OK.
Again I want to create another text you object to the TXI the lion.
And then I put in an assignment operator here and then I cast this object to a text you object find
view by id artist Id dot the line.
OK.
Takes you
DHT.
Let's see our.
OK.
This is our Lepard takes you here to the leopard.
And then I put an assignment operator here and then I cast this object to a text you object.
Find by ID or that idea that takes the Leppert.
OK.