8.Oops
8.Oops
PROCEDURAL vs
OOPS
OBJECT ORIENTED
PROGRAMMING
Class
Object
Method
Inheritance
Polymorphism
Data Abstraction
Encapsulation
OBJECT
The object is an entity that has state and
behavior.
It may be any real-world object like the
mouse, keyboard, chair, table, pen, etc.
Everything in Python is an object, and
almost everything has attributes and
methods.
OBJECT - EXAMPLE
When we define a class, it needs to create an
object to allocate memory.
CLASS