1 00:00:07,170 --> 00:00:07,810 Hi. 2 00:00:07,890 --> 00:00:09,060 Welcome back. 3 00:00:09,060 --> 00:00:15,380 In this lecture we will talk about more advanced object oriented programming. 4 00:00:15,480 --> 00:00:17,160 We know early in this uh. 5 00:00:17,160 --> 00:00:30,310 Course the regular types of missiles which has self-insurance or any instance but not without any science 6 00:00:30,610 --> 00:00:32,350 like missiles. 7 00:00:32,350 --> 00:00:39,290 We will talk about today which are at glass missile and at static missiles. 8 00:00:39,310 --> 00:00:49,330 We call them as decorators and we use them to make more readable and easy to read code. 9 00:00:49,420 --> 00:00:58,390 Suppose we have glass called my glass definition Glass glass. 10 00:00:58,390 --> 00:01:06,350 My glass deaf or def DNF or definition missile self retard. 11 00:01:07,490 --> 00:01:15,030 Any sense is his self and the self add class method definition class missile. 12 00:01:15,210 --> 00:01:23,400 Fearless return class missile is here and see a less static missile. 13 00:01:24,130 --> 00:01:26,480 DIA F. static missile return. 14 00:01:26,490 --> 00:01:28,200 Static missile is here. 15 00:01:29,480 --> 00:01:31,290 Only without any innocence. 16 00:01:31,740 --> 00:01:36,000 So what's the difference between regular and Atlas missile. 17 00:01:36,900 --> 00:01:44,790 The difference that we can access KILL US state and object innocence or change them and regular missiles 18 00:01:46,300 --> 00:01:51,330 but in at glass missile we can access and use the closest it only. 19 00:01:51,340 --> 00:01:59,800 But not the object instance which is self we use the creator to make our code is live readable. 20 00:01:59,840 --> 00:02:11,690 As I told you if we suppose that object equal Michaelis and object method will give us that instance 21 00:02:11,710 --> 00:02:12,530 is here. 22 00:02:16,280 --> 00:02:24,670 As a result of my class object that class method will give us less method is used. 23 00:02:25,120 --> 00:02:37,090 Static object not static missile will give us a static method is each Michaelis that les mis sold Christmas 24 00:02:37,200 --> 00:02:38,170 is here. 25 00:02:38,610 --> 00:02:40,140 And this is about. 26 00:02:40,170 --> 00:02:47,640 Of our class but a static method is not part of our class 27 00:02:50,380 --> 00:02:51,120 as it. 28 00:02:51,140 --> 00:02:54,760 Kent X is the object essence or is a class. 29 00:02:54,760 --> 00:02:58,890 State my class static missile. 30 00:02:59,440 --> 00:03:05,920 Michael is not a static missile it will give us uh we will get a static method is here. 31 00:03:07,060 --> 00:03:10,600 My class will give us that. 32 00:03:10,600 --> 00:03:16,540 My class is the main of my class or part of my class. 33 00:03:16,570 --> 00:03:20,520 Michael has not missile when we try to run my class. 34 00:03:20,670 --> 00:03:21,410 Miss. 35 00:03:21,730 --> 00:03:24,290 We will get type error on our missile. 36 00:03:24,610 --> 00:03:30,070 Had I missing one requirement required positional argument which is self 37 00:03:32,740 --> 00:03:38,270 let's try another example for our uh lesson today. 38 00:03:38,500 --> 00:03:40,300 Plus fruit. 39 00:03:40,300 --> 00:03:46,720 Definition in it self and fruit self adult fruit equal fruit. 40 00:03:46,720 --> 00:03:48,110 Deaf rubber. 41 00:03:48,550 --> 00:03:55,170 Self return f fruit and self. 42 00:03:55,180 --> 00:03:58,330 The truths and glass mislead. 43 00:03:58,580 --> 00:04:11,340 Jeff citrus seedless innocence the tendency Liz Lemon and orange and tangerine plus method Jeff grabs 44 00:04:11,730 --> 00:04:19,170 seedless Aniston's return Cialis green grabs and red grapes. 45 00:04:19,600 --> 00:04:31,020 Static method def season return citrus fruit in winter wraps fruit in summer when we run from Citrus 46 00:04:31,290 --> 00:04:42,060 we will get fruit lemon orange and tangerine fraud that gap's we will get green grapes and red grapes 47 00:04:43,350 --> 00:04:51,450 but when we run the fruit that season we will get citrus fruit in winter and the reps fruit in summer. 48 00:04:51,570 --> 00:04:55,900 So a static method at a static method is uh. 49 00:04:56,100 --> 00:04:59,100 Apart from our fruit. 50 00:04:59,100 --> 00:05:01,300 Class thank you for watching. 51 00:05:01,300 --> 00:05:04,680 Hope you enjoy this lecture and understand. 52 00:05:04,690 --> 00:05:06,060 Thank you again. 53 00:05:06,070 --> 00:05:06,640 Bye bye.