









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Why use OPP? Building blocks of OOP? Classes Objects What is OOP? OOP concepts? Abstraction Encapsulation Inheritance Polymorphism Advantages vs Disadvantages Conclusion
Typology: Slides
1 / 16
This page cannot be seen from the preview
Don't miss anything!










Objective:
Know the difference between functional programm
and OOP
Know basic terminology in OOP
Know the importance of OOP
Know four design principles of OOP
Know OOP programming languages
STRUCTURED vs. OO PROGRAMMING
STRUCTURED PROGRAMMING:
MAIN PROGRAM
FUNCTION 2 FUNCTION 3
GLOBAL DATA
FUNCTION 4 FUNCTION 5
FUNCTION
1
Object 1
Object 2
Data
Function
Data
Function
Object 3
Data
Function
elements and methods
actions
Key idea in object-oriented:
The real world can be accurately described as a collection of
objects that interact.
Example for attributes and methods
Attributes:
manufacturer’s
name
model name
year made
color
number of doors
size of engine
etc.
Methods:
Define data items
(specify
manufacturer’s name,
model, year, etc.)
Change a data item
(color, engine, etc.)
Display data items
Calculate cost
etc.
Why OOP?
reusing code
once an object class is created it can be
used in other applications
classes can be tested independently
Encapsulation
information in the object_._
Analogy:
one person or object only.
Abstraction
Focus only on the important facts about the
problem at hand
to design, produce, and describe so that it can
be easily used without knowing the details of
how it works.
Analogy:
When you drive a car, you don’t have to know
how the gasoline and air are mixed and ignited.
Instead you only have to know how to use the
controls.
Draw map
Function Overloading
Inheritance
eye color, hair color, and so on.
grouped so that their common properties are
only defined once.
methods to the subclass(es).
attributes & methods besides having its own
unique attributes & methods.
Object-Oriented Programming Languages