0% found this document useful (0 votes)
67 views

Object Oriented Programming

1. This document discusses object-oriented programming (OOP) and its four main concepts: encapsulation, inheritance, polymorphism, and abstraction. 2. Encapsulation is the process of hiding implementation details and promoting data integrity through controlled access. Inheritance allows code reuse through hierarchical organization. Polymorphism enables flexibility through different object responses. Abstraction focuses on essential characteristics to manage complexity. 3. Together, these four OOP principles allow objects to communicate and collaborate to build powerful applications. OOP promotes modularity, reusability, and extensibility in software design.

Uploaded by

senpainella01
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views

Object Oriented Programming

1. This document discusses object-oriented programming (OOP) and its four main concepts: encapsulation, inheritance, polymorphism, and abstraction. 2. Encapsulation is the process of hiding implementation details and promoting data integrity through controlled access. Inheritance allows code reuse through hierarchical organization. Polymorphism enables flexibility through different object responses. Abstraction focuses on essential characteristics to manage complexity. 3. Together, these four OOP principles allow objects to communicate and collaborate to build powerful applications. OOP promotes modularity, reusability, and extensibility in software design.

Uploaded by

senpainella01
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

DCIT23

Object-oriented
Programming
ENCAPSULATION | INHERITANCE | POLYMORPHISM | ABSTRACTION
Presented by:

Allen G. Dinglas Arjhan Klein M. Caseserano Joshua C. Angue Patrick Jay Dizon
What is OOP?
Object-oriented programming (OOP) is a
computer programming model that organizes
software design around data, or objects, rather
than functions and logic. An object can be
defined as a data field that has unique attributes
and behavior.
1 3
4 Concepts of OOP Encapsulation Polymorphism

OOP allows objects to interact with each other


using four basic principles: encapsulation,
inheritance, polymorphism, and abstraction.
These four OOP principles enable objects to 2 4
communicate and collaborate to create Inheritance Abstraction
powerful applications.
1 Encapsulation
• the process of hiding the
implementation details of an
object.

• A basic example of
encapsulation is the transfer of
data defined as private in one Encapsulation is a key concept in OOP that promotes data integrity, code
class to other classes with reusability, and maintainability by encapsulating the internal state of objects
setter and getter methods. and providing controlled access to it through well-defined interfaces. It
allows you to design classes that are self-contained, cohesive, and loosely
coupled with other parts of the system.
2 Inheritance
• allows an object to extend its
characteristics to another
object.

• is a mechanism that allows a


class to inherit properties and
behaviors from another class.
IInheritance is a powerful mechanism in OOP that enables code reuse,
promotes modularity, and facilitates the creation of flexible and extensible
software systems. It allows you to organize and structure your code in a
hierarchical manner, making it easier to understand, maintain, and extend.
3 Polymorphism
• ability to process objects
differently depending on their
data type or class.

• is the method in an object-


oriented programming
language that performs
different things as per the
Polymorphism allows for flexibility and extensibility in object-oriented
object's class, which calls it.
designs, enabling code that is more modular, reusable, and easier to
maintain. With Polymorphism, a message is sent to multiple class objects,
and every object responds appropriately according to the properties of the
class.
4 Abstraction
• the process of picking out the
common features of objects
and procedures. This process
focuses on the essential
characteristics of an object.

• It is essential to represent real-


world objects in a simplified
manner for users to interact
Abstraction in OOP helps manage complexity, improve code organization,
easily.
and promote modular design by separating concerns and providing clear
interfaces for interaction between different components of a software
system. It enables developers to focus on high-level design and
functionality without being burdened by the low-level implementation
details.
Conclusion
In conclusion,

OOP is a programming paradigm that focuses on


objects rather than functions. It allows for better
1 Encapsulation
organization and encapsulation of code,
promotes reusability, and can improve the
2 Inheritance
maintainability and scalability of our programs.

3 Polymorphism

4 Abstraction
That’s all
Thank you!

You might also like