0% found this document useful (0 votes)
35 views1 page

Association: Planet Name and Planet Number Name and Phone Number

Maps can associate different types of data like: 1) Planet names with planet numbers, names and phone numbers, album names with song counts, and more. 2) Class diagrams can map attributes of a class to other classes, like a Vehicle class mapping a number attribute with a 1-1 relationship to an Int class, and attributes mapping to other classes in 1-N or N-N relationships. 3) A Vehicle class diagram example maps attributes like number, price, name in 1-1 relationships, doors in a 1-N relationship, tyres in a 2-N relationship, an engine in a 1-1 relationship and optionally replaceable, and speakers in a 0-N relationship
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views1 page

Association: Planet Name and Planet Number Name and Phone Number

Maps can associate different types of data like: 1) Planet names with planet numbers, names and phone numbers, album names with song counts, and more. 2) Class diagrams can map attributes of a class to other classes, like a Vehicle class mapping a number attribute with a 1-1 relationship to an Int class, and attributes mapping to other classes in 1-N or N-N relationships. 3) A Vehicle class diagram example maps attributes like number, price, name in 1-1 relationships, doors in a 1-N relationship, tyres in a 2-N relationship, an engine in a 1-1 relationship and optionally replaceable, and speakers in a 0-N relationship
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Applications of Map

Association :

Planet name and planet number

Name and Phone Number

Album and number of songs

Designation and Salary

Roll Number and actual data of a student

Roll number and list of Marks of Student.

Player ID and his data

Singer name and his lists of albums

When you want to map A to B, like a list of customer ID to.. lets say… permissions

Class Diagram:

Vehicle number Replace Optional Class Vehicle


able {

};
Number 1-1 Int number;
Price; 1-1 Float price;
Name 1-1 Char name[20];

Door 1-N List<door> ld;


Tyre 2-n Y List<tyre*> lt;
Engine 1-1 Y Engine * e;
Speakers 0-n y y List<speakers> ls;
Engine horse 1
power
Tax 1 Map<int,int> mpowertax;

You might also like