Please enable JavaScript.
Coggle requires JavaScript to display documents.
Object-Oriented Programming, by - Coggle Diagram
Object-Oriented Programming
Two Paradigms
Process-Oriented Model
characterizes a program as a series of
linear steps (code)
Object-Oriented Programming
organizes a program around its data
set of well-defined interfaces to that data
Abstraction
The data from a traditional process-oriented program can be transformed by abstraction
into its component objects
This is the essence of object-oriented programming
The Three OOP Principles
Inheritance
the mechanism of basing an object /class upon another ogject
An inherited class is called a subclass of its parent class/super class
Polymorphism
The provosion of a single interface to entities of different types or the use of a single symbol to represent multiple different types.
The most common use of polymorphism in OOP occurs when a parent class reference is used to refer to a child class object.
Encapsulation
the mechanism that binds together code
basis of encapsulation is the class
A class defines
the structure and behavior (data and code) that will be shared by a set of objects
Public class
represents everything
that external users of the class need to know, or may know
Private class
methods and data
can only be accessed by code that is a member of the class.
Polymorphism, Encapsulation and Inheritance Work Together
to produce
a programming environment
various parts of a complex program can be brought together to form a
cohesive, robust, maintainable whole
by
Hollis Francis
Nabil Hashim
Iman Hazeeq
Mubin
Aisha Yusli