0% found this document useful (0 votes)
5 views123 pages

Oops Uml DP

The document discusses various design patterns and their applications in programming languages, focusing on object-oriented principles. It explains the concept of association in Java, detailing the four types of relationships between classes: one-to-one, one-to-many, many-to-one, and many-to-many. Additionally, it outlines the processes of Object Oriented Analysis and Design, emphasizing the identification of objects in a problem domain and their interactions in software design.

Uploaded by

Vijay Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views123 pages

Oops Uml DP

The document discusses various design patterns and their applications in programming languages, focusing on object-oriented principles. It explains the concept of association in Java, detailing the four types of relationships between classes: one-to-one, one-to-many, many-to-one, and many-to-many. Additionally, it outlines the processes of Object Oriented Analysis and Design, emphasizing the identification of objects in a problem domain and their interactions in software design.

Uploaded by

Vijay Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 123

Design Patterns

A Comprehensive List of Design Patterns with Examples


The Topology of First-and Early Second-Generation Programming Languages
The Topology of Late Second-and Early Third-Generation Programming Languages
The Topology of Late Third Generation Programming Languages
The Topology of Small to Moderate-Sized Applications using
Object Based and Object-Oriented Programming Languages
The Topology of Large
Applications using Object-
Based and Object-Oriented
Programming Languages
The Oxford English Dictionary defines a paradigm
as "a pattern or model, an exemplar; a typical
instance of something, an example"
Association Aggregation And Composition
Association, in general terms, refers to the relationship between any two entities.
Association in java is the relationship that can be established between any two classes.
These relationships can be of four types:
1.One-to-One relation
2.One-to-many relation
3.Many-to-one relation
4.Many-to-many relation

To illustrate, let’s take two classes, Professor class, and Department class. Below are the
type of relationships/associations that can be possible between them
❑ One professor can only be assigned to work in one department. This forms a one-to-
one association between the two classes.
❑ One professor can be assigned to work in multiple departments. This is a one-to-
many association between the two classes.
❑ Multiple professors can be assigned to work in one department. This forms a many-
to-one association between the two classes.
❑ Multiple professors can be assigned to work in multiple departments. This is the
many-to-many association between the two classes.
What is Object Oriented Analysis and Design?
• During Object Oriented Analysis there is an emphasis on finding
and describing the objects or concepts in the problem domain.
For example, in the case of the flight information system, some of
the concepts include Plane, Flight and Pilot.

• During Object Oriented Design (or simply, Object Design) there


is an emphasis on defining software objects and how they
collaborate to fulfill the requirements. For example, A Plane
software object may have a tailNumber attribute and a
getFlightHistory method.

You might also like