0% found this document useful (0 votes)
9 views5 pages

Oop Sir Andy

Object-oriented programming (OOP) is a coding paradigm that emphasizes reusability through the use of objects that interact with each other and users. The four fundamental principles of OOP are encapsulation, abstraction, inheritance, and polymorphism, which help in organizing and protecting data, reducing complexity, reusing code, and allowing different object types to be accessed through the same interface. A class serves as a blueprint for creating objects, encapsulating data members and member functions.

Uploaded by

its.bestlink
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views5 pages

Oop Sir Andy

Object-oriented programming (OOP) is a coding paradigm that emphasizes reusability through the use of objects that interact with each other and users. The four fundamental principles of OOP are encapsulation, abstraction, inheritance, and polymorphism, which help in organizing and protecting data, reducing complexity, reusing code, and allowing different object types to be accessed through the same interface. A class serves as a blueprint for creating objects, encapsulating data members and member functions.

Uploaded by

its.bestlink
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Jaylou N.

Cruiz
BSIT 2204

Object-oriented programming (OOP) is a way


of thinking about and organizing code for
maximum reusability. With this type of
programming, a program comprises objects that
can interact with the user, other objects, or other
programs. This makes programs more efficient and
easier to understand.

OOP follows four basic principles:

Encapsulation: Data and methods that interact


with that data are bundled into one unit. This
allows you to control access to the data within
each object.

Abstraction: When creating an object, the coder


reduces complexity by showing only essential
information and “hiding” everything else, including
implementation mechanisms.

Inheritance: A programmer can derive a new


object with all or some of the properties of an
existing object. For example, a child class will
inherit properties and behaviours from a parent
class.
Polymorphism: This allows us to use child and
parent classes in precisely the same way while
maintaining each class’s unique attributes.
A class is a blueprint in Object-Oriented
Programming that defines the structure and
behavior of objects. It is a user-defined data type
containing data members and member functions,
allowing the creation of multiple instances.
Object is an instance of a class. All data members
and member functions of the class can be
accessed with the help of objects.
There are 4 major principles that make an
language Object Oriented. These are
Encapsulation, Data Abstraction, Polymorphism
and Inheritance. These are also called as four
pillars of Object Oriented Programming.

Encapsulation is an important concept in object-


oriented programming (OOP) that helps organize
and protect data.
Inheritance is an essential part of object-oriented
programming that allows one class to reuse
code from another class.

Polymorphism is a fundamental concept in


object-oriented programming (OOP) that allows
different types of objects to be accessed

through the same interface


Abstraction, in the context of OOP, refers to the
ability to hide complex implementation
details and show only the necessary features
of an object.

You might also like