Lecture_1 Intro to OOP
Lecture_1 Intro to OOP
TOPIC 1
Introduction to OOP
© YCI – 2025.
BIT 1203 04/14/2025
Outline
2
A programming paradigm is a :
Style of programming.
Way of representing concepts and abstraction
which are used to represent the elements of a
program and steps that compose a computation
Common programming paradigms
Non-Structured (Procedural) Programming
Structured Programming
Object Oriented Programming
Some of the programming languages are
designed to support one paradigm and some of
them support multiple paradigms.
© YCI – 2025. 04/14/2025
Non-Structured Programming
to any line
Leads to “spaghetti” code
language
© YCI – 2025. 04/14/2025
Limitation
Objects
Any real world entity that has an identity,
state and behavior is known as an object.
For example: chair, pen, table, keyboard, bike
etc. It can be physical and logical.
Instantiation
Building objects from classes
The process of doing this is called instantiation.
An object is then referred to as an instance of
its class.
Reuse
A class can be used many times to build
many objects.
Reuse of existing classes when building
and
the steering wheel “hides” the mechanisms that turn the
car.
Likewise in Object-oriented programming,
Abstraction is a process of hiding the implementation