1 00:00:01,080 --> 00:00:09,030 We can create chaos in Davos Square for example if we want to create a cost thought which has a property 2 00:00:09,030 --> 00:00:15,930 of weight and age and also a method park we can do it like this. 3 00:00:39,320 --> 00:00:42,420 And we can create a new object copy 4 00:00:48,730 --> 00:01:00,540 and then you can see if we use properly thought about it we'll have the results pop up that pop pop 5 00:01:00,610 --> 00:01:05,970 icon which means it also has the method. 6 00:01:06,410 --> 00:01:11,100 The puppy also has the method back then. 7 00:01:11,120 --> 00:01:16,700 Now we are going to create another cross which is the parent cross animal 8 00:01:24,380 --> 00:01:27,320 which only has one method which is it 9 00:01:40,800 --> 00:01:51,590 if we want the thought inherit the animal cos we can use extend this word. 10 00:01:52,940 --> 00:02:04,670 Now if we try to use puppy dog it can see the puppy now has the it method and it also get the result 11 00:02:04,760 --> 00:02:05,990 of I am eating.