The moose likes OO, Patterns, UML and Refactoring and the fly likes help: question from IBM test Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Reply Bookmark "help: question from IBM test" Watch "help: question from IBM test" New topic
Author

help: question from IBM test

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Here is couple question in IBM OOAD test, it made me crazy. I ttied different reasonable anwser, but it is wrong:
1) Which of the following are recommended when developing an OO system?
a) Write a description of the concept that a class represents whenever a new class is declared.
b) Use interfaces for types or roles that objects may play, independent of their location in the class hierarchy.
c) Apply design patterns where applicable in the system.
d) Name classes based on their design specifics, such
as "array" or "queue".

2 )When creating a subclass, the:
a) selected superclass should be chosen because it has
some methods the subclass can reuse, even if others do
not apply.
b) class name should normally be a qualification of its
superclass' name
c) subclass should be of the same type as all of its
superclasses
d) superclass should be marked as abstract

Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18641
I just posted an answer to this here


"I'm not back." - Bill Harding, Twister
 
 
subject: help: question from IBM test
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com