1 00:00:07,920 --> 00:00:08,940 Hi everybody. 2 00:00:08,940 --> 00:00:10,840 Welcome back. 3 00:00:10,860 --> 00:00:17,220 In this video we will discuss Object Oriented Programming. 4 00:00:17,770 --> 00:00:28,200 Magical Dunder missiles Dunder missives no missiles is used with constructor which is any missile. 5 00:00:28,500 --> 00:00:37,920 Example underscore underscore Len underscore vanities as global entities and underscore David underscore 6 00:00:37,990 --> 00:00:43,560 his third voters rank double underscore 7 00:00:46,320 --> 00:00:47,740 member entities cross-border entities. 8 00:00:47,830 --> 00:00:57,670 We use these missiles for specific functions like if we want to brand an object we can do that by using 9 00:00:57,810 --> 00:00:59,620 an IT missile alone. 10 00:00:59,620 --> 00:01:06,280 But we use double underscore to string double underscore or memory entities close parentheses missile 11 00:01:06,640 --> 00:01:07,030 alone 12 00:01:10,760 --> 00:01:19,880 and if we want to calculate the lens of an object we use double underscore and E N double underscore 13 00:01:20,160 --> 00:01:28,250 embedded to the schools and entities missile let's try that in the end it method from the last value 14 00:01:29,280 --> 00:01:32,170 we have glass that I use it. 15 00:01:32,670 --> 00:01:42,720 Yes and it self name and age self the name equal one name fiftieth age equal age user underscore one 16 00:01:42,840 --> 00:01:52,300 equals that the user was tougher and sixteen user underscored two that the user timer and 36. 17 00:01:52,620 --> 00:01:54,210 We have this glass. 18 00:01:54,350 --> 00:01:59,390 Let's bring User 1 Brent 19 00:02:02,100 --> 00:02:04,280 User 1. 20 00:02:04,680 --> 00:02:13,360 We will get that object in the memory of our glass mean that the user is a memory of our class that 21 00:02:13,440 --> 00:02:22,480 uses plan of our user one. 22 00:02:23,020 --> 00:02:24,870 We will get type error. 23 00:02:25,060 --> 00:02:32,130 Our object of type that the user has no lens what we can do to me to bring to our user and measures 24 00:02:32,140 --> 00:02:46,050 the lens we will use magical dander methods and with the constructor let's go and do that let's put 25 00:02:46,230 --> 00:02:49,290 our magic string of missile he he's 26 00:02:53,540 --> 00:02:59,670 year double underscored string self 27 00:03:03,050 --> 00:03:06,320 grows by entities call them enter return 28 00:03:13,170 --> 00:03:14,040 then if 29 00:03:20,190 --> 00:03:20,730 user 30 00:03:25,760 --> 00:03:26,210 name 31 00:03:29,430 --> 00:03:29,820 is 32 00:03:34,380 --> 00:03:37,460 get record growth and records. 33 00:03:41,610 --> 00:03:42,530 And the has 34 00:03:47,740 --> 00:03:52,060 to get it back in because we've got a record year. 35 00:03:59,050 --> 00:03:59,750 That's for me. 36 00:04:04,220 --> 00:04:06,470 That's the name for the main 37 00:04:09,320 --> 00:04:10,680 cell. 38 00:04:11,120 --> 00:04:13,900 The AIDS benefit of AIDS. 39 00:04:17,380 --> 00:04:19,820 Yes. 40 00:04:19,970 --> 00:04:28,330 Level underscore in the end double underscore. 41 00:04:29,260 --> 00:04:29,550 Cell 42 00:04:34,250 --> 00:04:34,870 return 43 00:04:37,450 --> 00:04:40,240 cell that hits 44 00:04:43,520 --> 00:04:50,420 tiff and then then we will bring user one 45 00:04:58,290 --> 00:05:02,880 it will be granted so easy. 46 00:05:02,880 --> 00:05:03,920 No problem. 47 00:05:04,230 --> 00:05:06,570 We will calculate the length of user 1 48 00:05:13,020 --> 00:05:15,850 we will get 16. 49 00:05:16,080 --> 00:05:22,590 Also we will do that for user to rent user to 50 00:05:26,030 --> 00:05:36,360 brain to use that to shift and enter user name is tamer and has seventy six years old and lengths of 51 00:05:36,360 --> 00:05:37,110 user to 52 00:05:41,710 --> 00:05:43,320 36. 53 00:05:43,330 --> 00:05:44,560 Thank you for watching. 54 00:05:44,560 --> 00:05:46,180 See you next lecture.