1
00:00:00,420 --> 00:00:05,940
So as you can see here dismembered actually returns a printable representation of this object.

2
00:00:05,940 --> 00:00:06,540
OK.

3
00:00:06,810 --> 00:00:09,570
So this next class refers to that specific class.

4
00:00:09,570 --> 00:00:11,760
For example our Animal class.

5
00:00:11,820 --> 00:00:12,380
OK.

6
00:00:12,540 --> 00:00:18,840
So if inside the Animal class this is our Animal class and that's our class here refers to that.

7
00:00:18,860 --> 00:00:24,520
And in my class for example if you want to actually override this method from another class.

8
00:00:24,540 --> 00:00:27,290
So inside the Animal class you are actually 18.

9
00:00:27,310 --> 00:00:28,430
Dismiss it.

10
00:00:28,440 --> 00:00:29,020
OK.

11
00:00:29,400 --> 00:00:35,320
So I get class that gets named Plus at slanged plus integer plus integers that are two hex string.

12
00:00:35,340 --> 00:00:39,880
Ok so I don't want this code to be executed in my own code.

13
00:00:39,930 --> 00:00:44,310
Ok so I just need to delete this return that to a strange method here.

14
00:00:44,310 --> 00:00:44,800
OK.

15
00:00:44,880 --> 00:00:52,080
As you can see here this super key word here actually fares to the superclass to the class that we are

16
00:00:52,080 --> 00:00:54,960
actually inheriting this method from.

17
00:00:54,960 --> 00:00:57,650
So this super refers to the Object class.

18
00:00:57,770 --> 00:00:58,570
OK.

19
00:00:59,070 --> 00:01:03,070
And here as you can see it says Return superstar to history.

20
00:01:03,240 --> 00:01:09,850
And it means that return the value of the execution of this line of code here.

21
00:01:09,870 --> 00:01:10,520
OK.

22
00:01:10,710 --> 00:01:13,970
So when you say return superhet that was thrilling.

23
00:01:14,340 --> 00:01:18,350
It means that it's going actually only execute this line of code here.

24
00:01:18,360 --> 00:01:24,800
OK return gets class that gets named plus signed plus integer that to heggs string has scored.

25
00:01:24,840 --> 00:01:28,820
So I don't want this code here to be executed.

26
00:01:28,830 --> 00:01:29,270
OK.

27
00:01:29,340 --> 00:01:34,360
Return get class that gets name plus sign plus integer that will heggs stream.

28
00:01:34,390 --> 00:01:39,010
OK so then you say return super that start to strange.

29
00:01:39,030 --> 00:01:44,230
It means that this super refers to the superclass.

30
00:01:44,230 --> 00:01:51,210
This object class datastream refers to the implementation of these MFL.

31
00:01:51,210 --> 00:01:53,680
OK so this is the implementation of this method.

32
00:01:53,700 --> 00:01:57,110
Ok this line of code is the implementation of that method.

33
00:01:57,210 --> 00:02:03,450
So I don't want this code to be executed so I just need to delete this line of code here and here.

34
00:02:03,480 --> 00:02:10,000
I can actually put in my own instruction as my own implementations inside these two string Meffert.

35
00:02:10,040 --> 00:02:20,630
OK so I just want to type in return as strange Dadds format and an inside Apprentice's.

36
00:02:20,670 --> 00:02:37,460
I need to put into double quotes percent as Colan percent as space percent as Colan percent as space

37
00:02:37,730 --> 00:02:42,170
person the space per cent the OK.

38
00:02:42,560 --> 00:02:49,160
And then I need to put in a comma here and now I want to actually specify the values that is going to

39
00:02:49,160 --> 00:02:51,070
be related to these tokens here.

40
00:02:51,080 --> 00:02:51,850
OK.

41
00:02:52,040 --> 00:02:59,750
So for the first argument as you can see this person is to put in a value of type A strange name.

42
00:03:00,430 --> 00:03:01,630
OK come on.

43
00:03:01,730 --> 00:03:08,150
And for the second token as you can see here I need to put in another argument of type A strange name

44
00:03:08,250 --> 00:03:12,580
or refer to the name of this name instance variable comma.

45
00:03:12,850 --> 00:03:16,760
And my first argument again is going to be of type as strange.

46
00:03:16,930 --> 00:03:20,920
So as you can see here it is Fred Torchin as you can see is present as.

47
00:03:20,960 --> 00:03:24,710
So I need to actually put in an argument of type as strange.

48
00:03:24,880 --> 00:03:27,950
OK so I just need to put it into double quotes here.

49
00:03:28,240 --> 00:03:30,390
Caller.

50
00:03:31,100 --> 00:03:34,830
And then comma color.

51
00:03:35,380 --> 00:03:36,120
OK.

52
00:03:36,550 --> 00:03:41,300
So again I'm putting a comma here and here I need to actually put in.

53
00:03:41,350 --> 00:03:43,870
So as you can see here this color here is four.

54
00:03:43,880 --> 00:03:47,310
These are token here percent as OK.

55
00:03:47,410 --> 00:03:52,810
So because I actually put a colon here I don't need to actually put a colon here and here.

56
00:03:52,850 --> 00:03:59,250
And for this token here percent the I need to actually put in an argument of type integer.

57
00:03:59,410 --> 00:04:03,800
So amount of speed comma.

58
00:04:04,090 --> 00:04:10,700
And for this token here again I need to put in an argument of type integer amount of power.

59
00:04:10,720 --> 00:04:11,510
OK.

60
00:04:12,100 --> 00:04:14,830
And then I need to put in a semicolon at the end of my statement.

61
00:04:14,890 --> 00:04:15,440
OK.

62
00:04:15,630 --> 00:04:21,970
OK whenever I call this Smurfette it's going to actually give me a human readable is 3 and about those

63
00:04:22,060 --> 00:04:24,680
are valuable or objects.

64
00:04:24,840 --> 00:04:25,460
OK.

65
00:04:25,720 --> 00:04:32,050
So this is the job of this two string method and this effect is from the from this object class and

66
00:04:32,080 --> 00:04:34,810
we are inheriting this method from the Object class.

67
00:04:34,990 --> 00:04:39,540
And that's why we actually put this house at sign over right.

68
00:04:39,550 --> 00:04:40,560
Key word here.

69
00:04:40,570 --> 00:04:41,020
OK.

70
00:04:41,110 --> 00:04:46,200
We are redefining or overwriting the Smurfette inside our own class.

71
00:04:46,240 --> 00:04:50,080
You are actually putting our own implementations inside this method.

72
00:04:50,230 --> 00:04:50,900
OK.

73
00:04:51,070 --> 00:04:53,010
So hopefully that makes sense.

74
00:04:53,290 --> 00:04:56,840
So let's actually go inside the main activity that java file.

75
00:04:57,160 --> 00:05:03,940
And here I want to actually access the Animal class and create an object from this animal class and

76
00:05:03,940 --> 00:05:07,160
then output those values to the screen.

77
00:05:07,290 --> 00:05:12,160
OK so now let's actually create an object from this animal class.

78
00:05:12,160 --> 00:05:12,970
OK.

79
00:05:13,000 --> 00:05:19,240
So inside the main activity that Javal and inside the inside the uncreate method here I need to refer

80
00:05:19,240 --> 00:05:21,720
to the name of this animal class animal.

81
00:05:22,000 --> 00:05:25,510
And here I need to actually give a name to this object.

82
00:05:25,510 --> 00:05:32,740
For example animal one and I need to put in an assignment operator here and then I need to actually

83
00:05:32,740 --> 00:05:34,600
put in the new key word here.

84
00:05:34,720 --> 00:05:38,130
And again I need to actually defer to the name of this Animal class.

85
00:05:38,140 --> 00:05:43,780
Ok so I need to actually putting up a semi-colon at the end of my statement.

86
00:05:43,840 --> 00:05:47,790
So now as you can see here it's now showing us an error.

87
00:05:47,890 --> 00:05:50,150
The Android studio is now complaining.

88
00:05:50,170 --> 00:05:50,840
Why.

89
00:05:51,040 --> 00:05:56,590
Because inside the animal class I've actually created a constructor that is going to actually accept

90
00:05:56,620 --> 00:05:57,740
for arguments.

91
00:05:57,760 --> 00:05:58,500
OK.

92
00:05:58,720 --> 00:06:06,100
And when ever that we want to actually create an object from this animal class this constructor is going

93
00:06:06,100 --> 00:06:06,970
to be called.

94
00:06:07,000 --> 00:06:10,580
So we need to actually putting those arguments here.

95
00:06:10,690 --> 00:06:11,190
OK.

96
00:06:11,380 --> 00:06:14,830
So the first argument must be of type as string.

97
00:06:14,860 --> 00:06:15,550
OK.

98
00:06:15,880 --> 00:06:19,720
And here I need to specify the name of this animal.

99
00:06:20,110 --> 00:06:26,000
So I just need to put in two double quotes here and the name of this animal is for example Tiger.

100
00:06:26,110 --> 00:06:28,270
And then I need to put in a comma here.

101
00:06:28,270 --> 00:06:32,820
The second argument I must specify the color of this target tiger.

102
00:06:32,830 --> 00:06:33,430
OK.

103
00:06:33,760 --> 00:06:42,410
So I just need to put into double calls here so excited about cotes I can just type in orange for example.

104
00:06:42,860 --> 00:06:45,450
And that again I need to put in a comma here.

105
00:06:45,590 --> 00:06:52,230
And my first argument must specify the amount of speed of this object.

106
00:06:52,250 --> 00:06:52,760
OK.

107
00:06:52,880 --> 00:06:59,180
As you can see here in amount of speed of type and so I need to put in a value of type int here.

108
00:06:59,450 --> 00:07:01,490
For example number 60.

109
00:07:01,700 --> 00:07:02,250
OK.

110
00:07:02,390 --> 00:07:09,470
And then I need to put in a comma here and here again I need to actually put in another argument here

111
00:07:09,500 --> 00:07:16,160
of type int and here I need to actually specify the amount of power of this object here.

112
00:07:16,310 --> 00:07:19,080
As you can see this argument is of type int.

113
00:07:19,220 --> 00:07:24,400
So I need to actually passing a value of type for example number 80.

114
00:07:24,680 --> 00:07:33,680
OK so now let's actually create some objects from the text view class and then refer to these components

115
00:07:33,950 --> 00:07:35,500
inside this screen here.

116
00:07:35,540 --> 00:07:39,640
Ok for example this animal takes the view here.

117
00:07:40,010 --> 00:07:45,940
So in so the main activity that you are here I need to actually create some text view objects so I can

118
00:07:45,940 --> 00:07:53,230
need to actually first to the name of the text your class and the name of my object is TXI the animal

119
00:07:53,920 --> 00:07:58,150
and assignment operator here an assignment operator here.

120
00:07:58,400 --> 00:08:01,050
And then I need to actually put in a pair of round brackets.

121
00:08:01,070 --> 00:08:07,370
So inside and out brackets I need to actually cast this object to a text you object.

122
00:08:07,370 --> 00:08:11,140
I talked more about casting objects later in this tutorial.

123
00:08:11,210 --> 00:08:13,590
But for now just typing text view.

124
00:08:13,810 --> 00:08:14,780
OK everyone.

125
00:08:14,780 --> 00:08:17,830
Now let's actually create some text you objects.

126
00:08:18,050 --> 00:08:22,880
So first of all we need to refer to the name of the text you class and then we need to actually give

127
00:08:22,940 --> 00:08:25,770
a name to this object to the animal.

128
00:08:26,630 --> 00:08:33,460
And then we put in an assignment operator here and then mean to cast this object to a text you object.

129
00:08:33,510 --> 00:08:38,000
Talk more about casting objects in this tutorial.

130
00:08:38,270 --> 00:08:42,550
But for now know that you need to actually cast this object to a test you object.

131
00:08:42,560 --> 00:08:43,260
OK.

132
00:08:43,730 --> 00:08:51,270
And then when you type in here find view by id r that ID that is the animal.

133
00:08:51,570 --> 00:08:52,180
OK.

134
00:08:52,400 --> 00:08:55,930
And then I need to put in a semi-colon at the end of my statement.

135
00:08:56,690 --> 00:09:00,790
And again I need to refer to the name of the text your class.

136
00:09:02,080 --> 00:09:03,890
OK.

137
00:09:05,170 --> 00:09:21,200
The and my second component is Chat chat and then I put in an assignment operator here takes to find

138
00:09:21,680 --> 00:09:26,570
the ID are that Id dot the chats.

139
00:09:26,660 --> 00:09:28,020
OK.

140
00:09:28,970 --> 00:09:35,930
Again I want to create another text you object to the TXI the lion.

141
00:09:36,470 --> 00:09:45,440
And then I put in an assignment operator here and then I cast this object to a text you object find

142
00:09:45,560 --> 00:09:52,220
view by id artist Id dot the line.

143
00:09:52,530 --> 00:09:53,650
OK.

144
00:09:54,280 --> 00:09:54,980
Takes you

145
00:09:57,720 --> 00:09:59,330
DHT.

146
00:09:59,910 --> 00:10:01,020
Let's see our.

147
00:10:01,290 --> 00:10:01,620
OK.

148
00:10:01,620 --> 00:10:08,190
This is our Lepard takes you here to the leopard.

149
00:10:09,270 --> 00:10:15,830
And then I put an assignment operator here and then I cast this object to a text you object.

150
00:10:16,090 --> 00:10:25,510
Find by ID or that idea that takes the Leppert.

151
00:10:25,730 --> 00:10:26,380
OK.

