1
00:00:07,770 --> 00:00:08,790
Hi everybody.

2
00:00:08,790 --> 00:00:10,700
Welcome back.

3
00:00:10,720 --> 00:00:15,800
In this video we will discuss object oriented programming.

4
00:00:15,880 --> 00:00:22,500
What will be symbol class creation composition and class.

5
00:00:25,160 --> 00:00:33,980
Object Oriented Programming Bobbie by Python uses classes to define new dental thought which is objects

6
00:00:34,280 --> 00:00:38,390
that last for model understatement.

7
00:00:38,630 --> 00:00:49,400
Plus it's a class body which contains nested E.F. statement loss if I may so that can be called on any

8
00:00:49,400 --> 00:00:53,150
instances of the objects implanted by this class

9
00:00:56,700 --> 00:01:05,320
class header which is the first line class my class object we should name class by camel case which

10
00:01:05,320 --> 00:01:13,930
are represented by every word of class contains the first letter in uppercase yes sure.

11
00:01:14,650 --> 00:01:21,920
So this is a defined statement or def which contains the innocence of the class blend.

12
00:01:22,060 --> 00:01:30,230
High class buddy you have check x equal my class X the Cho check.

13
00:01:30,250 --> 00:01:38,740
This is a defined missile which is the class body class attributes that attribute defined in the class

14
00:01:38,960 --> 00:01:41,930
is called class attributes class.

15
00:01:41,950 --> 00:01:47,740
My class age equals 21 my class age.

16
00:01:48,190 --> 00:01:59,530
We will get 21 Aniston's Aniston's attributes that attribute defined in the function his instance attributes

17
00:02:00,520 --> 00:02:07,990
class my class income in case you have Edge Edge equal 21.

18
00:02:07,990 --> 00:02:09,730
My class does age.

19
00:02:09,850 --> 00:02:20,410
We will get twenty one class entities when creating an innocence missile the first parameter is always

20
00:02:20,410 --> 00:02:29,830
self and we can call it self by any other name that's recommended to use self as it is a naming convention

21
00:02:31,120 --> 00:02:46,720
class my class object num equal 5 Yes rating says Brent hello my object equal my Class Brent my object

22
00:02:47,020 --> 00:03:00,370
num we will get 5 my object not getting we will get hello we will jump into Jupiter notebook to create

23
00:03:00,400 --> 00:03:04,600
assemble class and gave more explanation let's go

24
00:03:08,010 --> 00:03:11,640
we will create assemble class so we will fight class

25
00:03:17,160 --> 00:03:26,900
plus C A as as then we will name our class income.

26
00:03:26,910 --> 00:03:34,660
Case suppose we have user data class uses

27
00:03:47,010 --> 00:03:52,960
user data class zinc type bus and

28
00:03:56,560 --> 00:04:04,240
assembly class doesn't do anything and dozens written anything because it doesn't have any attributes

29
00:04:05,810 --> 00:04:16,910
we will type our attributes first against the best then if we want to create attributes to this class

30
00:04:17,330 --> 00:04:21,320
we will use the F statement as follows.

31
00:04:21,380 --> 00:04:24,670
Using a special method we will talk about it.

32
00:04:24,670 --> 00:04:32,090
The next lecture and the deals then we will best any parameters we want to use

33
00:04:35,910 --> 00:04:36,440
V.F.

34
00:04:42,400 --> 00:04:45,510
so it is as follows.

35
00:04:45,520 --> 00:04:53,580
But into this column we invest our every views which is the brain.

36
00:04:54,290 --> 00:04:54,550
Hi

37
00:05:06,480 --> 00:05:07,560
then we will define

38
00:05:11,000 --> 00:05:18,780
the function that we will call the class steroid if it took

39
00:05:26,740 --> 00:05:27,190
equal

40
00:05:31,280 --> 00:05:31,820
use that

41
00:05:44,680 --> 00:05:45,830
equal use of the

42
00:05:49,630 --> 00:05:50,260
x.

43
00:05:50,880 --> 00:05:51,210
So

44
00:05:54,120 --> 00:05:56,370
then we will call it check.

45
00:05:56,370 --> 00:05:57,030
Function

46
00:06:03,010 --> 00:06:03,340
method

47
00:06:09,480 --> 00:06:22,350
shift and enter this error means that we have to add a parameter for that argument that n time so we

48
00:06:22,350 --> 00:06:25,950
would add that parameter which is self

49
00:06:40,130 --> 00:06:47,520
and we get the result of the class which is high.

50
00:06:47,780 --> 00:06:49,070
Thanks for watching.

51
00:06:49,070 --> 00:06:52,950
See you next lecture.
