OOP in Python
ge
To map with real world scenarios, we started using objects in code.
olle
This is called object oriented programming.
na C
Ap
, Class & Object in Python
ge
Class is a blueprint for creating objects.
olle
C
#creating class
na
class Student:
Ap
name = “karan kumar”
#creating object (instance)
s1 = Student( )
print( s1.name )
ge
To map with real world scenarios, we started using objects in code.
olle
This is called object oriented programming.
na C
Ap
, Class & Object in Python
ge
Class is a blueprint for creating objects.
olle
C
#creating class
na
class Student:
Ap
name = “karan kumar”
#creating object (instance)
s1 = Student( )
print( s1.name )