Objects by Design Forums Here you can view your subscribed threads, work with private messages and edit your profile and preferences Registration is free! Calendar Find other members Frequently Asked Questions Search Home  
Objects by Design Forums : Powered by vBulletin version 2.3.5 Objects by Design Forums > Main Forums > UML Certification Review Questions > conceptual vs. specification classes
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
ahj999
Junior Member

Registered: Nov 2001
Location:
Posts: 6

Class Diagrams

29) Which of the following are TRUE about interpreting class diagrams from different perspectives?

a) Specification perspective class diagrams are developed without considering the programming language that might be used to implement it.

b) The conceptual perspective class diagram of an application would not include all the classes required and their details, rather, they would only identify domain classes.

c) In the conceptual perspective, associations represent relationships between classes, whereas they represent responsibilities in the specification perspective.

d) Operations (the processes that a class knows to carry out) should be used in conceptual models to specify the interface of a class.

Multiple Select - Please select all of the correct answers (this question has 2 correct choices).

Last edited by ahj999 on 11-13-2001 at 05:18 AM

Report this post to a moderator | IP: Logged

Old Post 11-13-2001 05:14 AM
ahj999 is offline Click Here to See the Profile for ahj999 Click here to Send ahj999 a Private Message Find more posts by ahj999 Add ahj999 to your buddy list Edit/Delete Message Reply w/Quote
Anil
Junior Member

Registered: Oct 2001
Location: Santa Clara,CA
Posts: 7

Choice (b) & (c) are correct.

choice (a) - Conceptual perspective class diagrams can be developed without considering the programming lanaguage that might be used for implementaion. But specification perspective class diagram has to consider it because this diagram need to define interfaces of software.

choice (b) - it is correct. Concep. persp. class diagrams responsible for showing those classes which help in understanding domain concepts.


choice (c) - it is correct. Spec. persp. shows interfaces of a class. These interfaces are nothing other than implementation of associations between classes. These interfaces are methods which a class has to implement eventually( responsibilities of class).

choice (d) - This task should be done at specification level.

__________________
Anil
anils70@hotmail.com

Report this post to a moderator | IP: Logged

Old Post 11-14-2001 12:07 AM
Anil is offline Click Here to See the Profile for Anil Click here to Send Anil a Private Message Find more posts by Anil Add Anil to your buddy list Edit/Delete Message Reply w/Quote
itgal
Junior Member

Registered: Nov 2001
Location: Los Angeles, CA
Posts: 9

The answer is B & C.

b) The conceptual perspective class diagram of an application would not include all the classes required and their details, rather, they would only identify domain classes.

c) In the conceptual perspective, associations represent relationships between classes, where as they represent responsibilities in the specification perspective.

Refer to UML Distilled page 51-52.

B b/c - If you take the conceptual perspective, you draw a diagram that represents the concepts in the domain under study. These concepts will naturally relate to the classes that implement them but ther is often no direct mapping. Indeed, a conceptual model should be drawn w/ little or no regard for the software that might implement it, so it can be considered language-independent. It represents "real-world" objects or domain classes

C b/c - From the conceptual perspective, associations represent conceptual relationships between classes.

-----------
ITGAL

Report this post to a moderator | IP: Logged

Old Post 12-04-2001 11:49 AM
itgal is offline Click Here to See the Profile for itgal Click here to Send itgal a Private Message Find more posts by itgal Add itgal to your buddy list Edit/Delete Message Reply w/Quote
capecod
Member

Registered: May 2001
Location: New York
Posts: 37

conceptual vs. specification classes

The two different perspectives for using class diagrams is described very well in Larman's book.

The conceptual perspective is taken during domain analysis to identify 'concepts' in the domain being analyzed. These 'concepts' are typically real-world entities which show up as nouns in the use cases.

The specification perspective is probably better known as the design perspective (as in: analysis and design), and involves the specification of the operations that are discovered during the development of interaction diagrams.

B) correctly describes the conceptual perspective.

We can rule out D) because operations would not be specified in the conceptual perspective.

That leaves A and C which are close. I would tend to think that A is NOT true and that language considerations MAY affect the design of specification perspective classes. What bothers me about this is that it should be possible to generate source code in multiple languages from a single class diagram. The main issue here, I believe, is that attribute data types may be different for each supported language.

Answer C is more probable but is difficult, nonetheless, since most people don't understand this fine distinction between relationships vs. responsibilities. Anybody care to try to explain this distinction?

Report this post to a moderator | IP: Logged

Old Post 02-07-2002 02:26 AM
capecod is offline Click Here to See the Profile for capecod Click here to Send capecod a Private Message Find more posts by capecod Add capecod to your buddy list Edit/Delete Message Reply w/Quote
alastair_penney
Junior Member

Registered: Jan 2002
Location: London
Posts: 3

Agree, (B) and (C) are correct.

For the second choice, see UML Distilled pp52-54 on Associations within class diagrams.

"From the conceptual perspective, associations represent conceptual relationships between classes .."
"Within the specification perspective, associations represent responsibilities."

Alastair

Report this post to a moderator | IP: Logged

Old Post 02-07-2002 12:46 PM
alastair_penney is offline Click Here to See the Profile for alastair_penney Click here to Send alastair_penney a Private Message Find more posts by alastair_penney Add alastair_penney to your buddy list Edit/Delete Message Reply w/Quote
garth
Junior Member

Registered: Mar 2002
Location:
Posts: 20

Please look at Larman page 144. In refering to the specification perspective:
"The diagrams are interpreted as describing software abstractions or components with specification and interfaces, but no commitment to a particular implementation (for example, not specifically a class in c# or java). "

This makes "a" a correct answer. page 52 of fowler shows "c" to be the right answer.
I chose "a" and "c".

Report this post to a moderator | IP: Logged

Old Post 03-23-2002 08:06 PM
garth is offline Click Here to See the Profile for garth Click here to Send garth a Private Message Find more posts by garth Add garth to your buddy list Edit/Delete Message Reply w/Quote
cejac63
Junior Member

Registered: Mar 2002
Location:
Posts: 20

I say the answer is (a) and (c).

Answer (a) even though you are looking at software in the specification perspective, the interfaces of the software, not the implementation(fowler).

Answer (b) is incorrect in my opinion because of the word "only" in the statement. The conceptual perspective not only shows the concepts in the domain model but conceptual relationships between the classes(fowler).

I know I maybe stretching it, but I believe (a) is more correct than (b) because of that word.

Report this post to a moderator | IP: Logged

Old Post 03-24-2002 03:29 PM
cejac63 is offline Click Here to See the Profile for cejac63 Find more posts by cejac63 Add cejac63 to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 08:34 AM. Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 

< Contact Us - Objects by Design >

Powered by: vBulletin Version 2.3.5
Copyright ©2000 - 2018, Jelsoft Enterprises Limited.
Copyright 1999-2005, Objects by Design, Inc.