Chap-1-Introduction To Object-Oriented Programming
Chap-1-Introduction To Object-Oriented Programming
TO OBJECT-ORIENTED
PROGRAMMING
Difficult to design
POP’s functions and data structures have limited
support to model real-world objects and their
interactions.
• For example, in designing graphical user interface, the
focus is placed on what “functions, and data
© 2023 Prepared By Ddamba Abdul For
structures”
Chap-1: Introduction
Programming
are
to Object-oriented needed
18instead
BBC-2 –of which “menu,
MUBS
Object-oriented Programming
(OOP)
OOP languages were designed to
overcome POP-related problems
Data Data
Communication
Functions Functions
Object C
Functions
Data
Flexibility
OOP supports the creation of extensible and
adaptable
Chap-1: Introduction software systems
to Object-oriented
25
© 2023 Prepared By Ddamba Abdul For
BBC-2 – MUBS
Programming
Features of OOP
Approach
Employs a bottom-up approach to
program design
Program organization start from the bottom to the
top
• It means we make the smallest (simple) pieces of
program first and then use them to build a
bigger(complex) program.
Code reusability
A piece of code written earlier in a program can
be used later through “inheritance”.
© 2023 Prepared By Ddamba Abdul For
• By using inheritance, one
26 class
Chap-1: Introduction to Object-oriented
Programming
can
BBC-2 acquire the
– MUBS
Examples of OOP
Languages
Some
Examples
well-known
of OOP Languages.
object-oriented
programming
Two examples oflanguages include;
popular object-oriented
• programming
Java languages •areSimula
Java and C++.
• Some • Smalltalk
C++ other well-known object-oriented
• programming
C# languages •include;
Eiffel
• Python • JADE
• Simula,
• Ruby • Objective C
• • Swift
Smalltalk, • Delphi
• • PHP
Eiffel, • F#
• • Scala
JADE, • Perl
• • Kotlin
C#,
• VisualBasic.NET