Kategorier: Alla - encapsulation - abstraction - class

av Iffah Hazwani för 4 årar sedan

399

INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING (OOP)

Object-oriented programming (OOP) is a paradigm that emphasizes structuring software by encapsulating data and behavior into objects. It contrasts procedural programming, which is derived from structured programming and focuses on sequences of instructions.

INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING (OOP)

INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING (OOP)

Unified Modeling Language (UML)

Diagrams
Notations
UML is a visual language that lets you to model processes, software, and systems to express the design of system architecture.

OBJECT ORIENTED ANALYSIS + OBJECT ORIENTED DESIGN (OOAD)

DISADVANTAGES
All time it is not easy to determine all the necessary class and objects required for a system.

Without an explicit reuse procedure this methodology do not lead to successful reuse on a large scale.

ADVANTAGES
It is easy to understand

It provides re-usability

OBJECT ORIENTED APPROACH

Elements
-Objects

-Attributes

-Behavior

Focus is on capturing the structure and behavior of information systems into small modules that combines both data and process.

FEATURES

Encapsulation
Data Abstraction

Procedural Programming

-FORTRAN

-ALGOL

-COBOL

A programming model which is derived from structured programming.

OBJECT ORIENTED PROGRAMMING TECHNIQUES

Languages
-Java

-Python

-C++

-Abstraction: The process of picking out (abstracting) common features of objects and procedures. -Class: A category of objects.