Hi everybody.
Welcome back.
In this video we will discuss object oriented programming.
What will be symbol class creation composition and class.
Object Oriented Programming Bobbie by Python uses classes to define new dental thought which is objects
that last for model understatement.
Plus it's a class body which contains nested E.F. statement loss if I may so that can be called on any
instances of the objects implanted by this class
class header which is the first line class my class object we should name class by camel case which
are represented by every word of class contains the first letter in uppercase yes sure.
So this is a defined statement or def which contains the innocence of the class blend.
High class buddy you have check x equal my class X the Cho check.
This is a defined missile which is the class body class attributes that attribute defined in the class
is called class attributes class.
My class age equals 21 my class age.
We will get 21 Aniston's Aniston's attributes that attribute defined in the function his instance attributes
class my class income in case you have Edge Edge equal 21.
My class does age.
We will get twenty one class entities when creating an innocence missile the first parameter is always
self and we can call it self by any other name that's recommended to use self as it is a naming convention
class my class object num equal 5 Yes rating says Brent hello my object equal my Class Brent my object
num we will get 5 my object not getting we will get hello we will jump into Jupiter notebook to create
assemble class and gave more explanation let's go
we will create assemble class so we will fight class
plus C A as as then we will name our class income.
Case suppose we have user data class uses
user data class zinc type bus and
assembly class doesn't do anything and dozens written anything because it doesn't have any attributes
we will type our attributes first against the best then if we want to create attributes to this class
we will use the F statement as follows.
Using a special method we will talk about it.
The next lecture and the deals then we will best any parameters we want to use
V.F.
so it is as follows.
But into this column we invest our every views which is the brain.
Hi
then we will define
the function that we will call the class steroid if it took
equal
use that
equal use of the
x.
So
then we will call it check.
Function
method
shift and enter this error means that we have to add a parameter for that argument that n time so we
would add that parameter which is self
and we get the result of the class which is high.
Thanks for watching.
See you next lecture.