1 Oop
1 Oop
vs
Object Oriented
Analysis and
Design
1
2
OOAD SAD
• Structured Analysis
• Divide and Conquer
• At the function level
• Object-Oriented Analysis
• Partition
• At the level of concepts (objects)
OOAD Vs. SAD
6
7
In Java,
"public" makes a member accessible from any class
"protected" permits access inside the same package and
by subclasses
"private" restricts access to only within the declaring
class.
The void keyword in Java is used to indicate that a
method does not return a value. A method that is declared
as void does not have a return type
9
10
In between a nice idea and a working software, there is much more than
programming.
These blueprints can then be transferred into code using any specific OO
language.
Object Oriented Languages
•OOP focuses on the objects that developers want to manipulate rather than the
logic required to manipulate them.
12
Object Oriented Languages
•The first step in OOP is to collect all the objects a programmer wants to manipulate
and identify how they relate to each other -- an exercise known as data modeling.
•Examples of an object can range from physical entities, such as a human being
who is described by properties like name and address, to small computer programs,
such as widgets.
•Once an object is known, it is labeled with a class of objects that defines the kind
of data it contains and any logic sequences that can manipulate it.
•Classes are user-defined data types that act as the blueprint for individual
objects, attributes and methods.
•Methods are functions that are defined inside a class that describe the
behaviors of an object.
•Attributes are defined in the class template and represent the state of an
object. Objects will have data stored in the attributes field. Class attributes
14
belong to the class itself.
Object Oriented Languages
15
16
Object Oriented Languages