Introduction to Object-Oriented Programming (OOP) ^0 Its Core Pillars
Introduction to Object-Oriented Programming (OOP) ^0 Its Core Pillars
Introduction to Object-Oriented
Programming (OOP) & Its Core Pillars
G r o u p Members:
1. M . Abdul Moiz
2. Faraz Khaliq
3. Subhan Qureshi
4. Atkah Zubair
5. Kisa e Zahra
What is Object-Oriented Programming?
Object-Oriented Programming (OOP) is a programming technique where software
is structured around objects, which contain both data and methods (functions). The concept
is based on classes that define the structure and behavior of objects.
Key Concepts:
1.Encapsulation
2.Abstraction
3.Inheritance
4.Polymorphism
Encapsulation
Benefits:
Benefits:
o Simplifies interaction with complex systems.
o Prevents users from getting overwhelmed by implementation details.
Inheritance
Inheritance is a mechanism where a new
class can acquire attributes and methods from
an existing class, allowing for code reuse and
extension.
Benefits:
o Promotes code reuse.
o Enables a hierarchical relationship
between classes.
Polymorphism
Polymorphism allows objects of different classes to be treated as instances of a common
superclass. It enables a single interface to represent different underlying forms or behaviors.
Benefits:
o Increases flexibility and reusability.
o Enables different objects to respond to the same method in different ways.