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 > interfaces
  Last Thread   Next Thread
Thread Post New Thread    Post A Reply

Registered: Apr 2001
Location: New York
Posts: 492


30) Refer to the exhibit to answer the question.

Which of the following are TRUE?

a) Classes "X" and "Y" are subclasses of Mortgageable.

b) Instances of "X" and "Y" can be passed as parameters declared as type Mortgageable.

c) "X" and "Y" must implement a getAppraisedValue() method.

d) There are instances of Mortgageable in the production system.

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


See the attached diagram.

A is incorrect because Mortgageable is an interface, not a class. Both X and Y are classes which implement (realize) the Mortgageable interface.

D is a bit incongruous - this is a class diagram, not an object or deployment diagram.

B and C are the typical features of classes which realize interfaces.

B is a very elegant benefit of using interfaces because it dramatically decreases the coupling in a system. Methods which take a parameter of type Mortgageable only need to know about the interface, and nothing else about the details of the implementing class.

Attachment: mortgageable.gif
This has been downloaded 2183 time(s).

Report this post to a moderator | IP: Logged

Old Post 03-26-2002 04:34 AM
SZ is offline Click Here to See the Profile for SZ Click here to Send SZ a Private Message Visit SZ's homepage! Find more posts by SZ Add SZ to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 06:31 PM. 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.