Professional Documents
Culture Documents
Object-Oriented Programming (Oop) : Prepared By: Joem F. Gutierrez
Object-Oriented Programming (Oop) : Prepared By: Joem F. Gutierrez
Object-Oriented Programming (Oop) : Prepared By: Joem F. Gutierrez
PROGRAMMING (OOP)
Prepared By: Joem F. Gutierrez
What is 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.
OOP focuses on the objects that developers want to
manipulate rather than the logic required to
manipulate them. This approach to programming is
well-suited for programs that are large, complex and
actively updated or maintained.
What is a Class in OOPs Concepts?
- A class can be considered as a blueprint using
which you can create as many objects as you like.
What is an Object in OOPs Concepts?
- Object is a bundle of data and its behavior(often
known as methods).
- Objects have two characteristics:
They have states and behaviors.
Examples of states and behaviors
Example 1:
Object: House
State: Address, Color, Area
Behavior: Open door, close door
Characteristics of
Objects:
1.Abstraction
2.Encapsulation
3.Message passing
What is Properties in OOPs Concepts?
- A property is a special sort of class member,
intermediate in functionality between a field (or
data member) and a method.