Oop Lect1
Oop Lect1
Presented by
Engr. Muhammad Furqan
Lecturer IBET LUMHS
What is OOP ?
• A programming paradigm that is focused on objects and
data
Mouse is
object
Behavior Scrolling
Left Right
Click Click
Class
Hiding Of Data
And Its
Background
Detail
Python code of Data abstraction
Note:
Child class
Or
Derived
class Line
• Inheritance allows us to define a class that
inherits all the methods and properties from
another class.
• Parent class is the class being inherited from,
also called base class. Child class is the class
that inherits from another class, also called
derived class.
Create a Parent Class
Polymorphism
Operator ‘+’
‘pak’+’istan’=p
5+5=10 akistan
Dynamic Binding
to be execute.
Performance
MgmtObject Performance
Result
Thank you