|
INTERVIEW QUESTIONS
PROGRAMMING LANGUAGES
UML
DETAILS
Question: What are Relationships?
Answer: There are different kinds of relationships: Dependencies, Generalization, and Association. Dependencies are relations ships between two entities that that a change in specification of one thing may affect another thing. Most commonly it is used to show that one class uses another class as an argument in the signature of the operation. Generalization is relationships specified in the class subclass scenario, it is shown when one entity inherits from other. Associations are structural relationships that are: a room has walls, Person works for a company. Aggregation is a type of association where there is a has a relation ship, That is a room has walls, ño if there are two classes room and walls then the relation ship is called a association and further defined as an aggregation.
|
|
|
Category |
UML Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 9569 users |
Added on |
9/9/2014 |
Views |
68089 |
Rate it! |
|
|
Question:
What are Relationships?
Answer:
There are different kinds of relationships: Dependencies, Generalization, and Association. Dependencies are relations ships between two entities that that a change in specification of one thing may affect another thing. Most commonly it is used to show that one class uses another class as an argument in the signature of the operation. Generalization is relationships specified in the class subclass scenario, it is shown when one entity inherits from other. Associations are structural relationships that are: a room has walls, Person works for a company. Aggregation is a type of association where there is a has a relation ship, That is a room has walls, ño if there are two classes room and walls then the relation ship is called a association and further defined as an aggregation. Source: CoolInterview.com
How one class is related to another class is called a relationship
Basically there are three types of relationship
1)one-one relationship 2)one-many relationship 3)Many-many relationship
Regards, Nicku Source: CoolInterview.com
Answered by: nicku | Date: 8/11/2010
| Contact nicku
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What is SDLC?
|
View Answer
|
|
What is Architecture?
|
View Answer
|
|
Mention the different kinds of modeling diagrams used?
|
View Answer
|
|
What are the major three types of modeling used?
|
View Answer
|
|
What are diagrams?
|
View Answer
|
|
What are the different views that are considered when building an object-oriented software system?
|
View Answer
|
|
What is modeling? What are the advantages of creating a model?
|
View Answer
|
|
What is UML?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All UML Interview Questions & Answers - Exam Mode /
Learning Mode
|