Professional Documents
Culture Documents
Programming
1
Topics to be covered
Class, Attribute and Method
Inheritance
Polymorphism
Encapsulation
Introduction: Object Oriented Programming
Continue…
Continue…
Continue…
An object has two characteristics:
• Attributes
• Behavior
Parrot()
name, age
sing()
Self: represents the instance of the
class. By using the “self” keyword we
can access the attributes and methods
of the class in python.
It binds the attributes with the given
arguments.
Tutorials
Continue…
Class and Attributes examples
Continue…
Class Attributes
Instance Attributes
Continue…
Class and Methods examples