IBM
C2140-834 · Question #5
Given the following configuration: Package A, which contains class aClass is in the presentation layer. Package B, which contains a class bClass and an interface bInterface is in the business layer…
The correct answer is B. aClass has an attribute of type cClass. See the full explanation below for the reasoning.
Question
Given the following configuration: Package A, which contains class aClass is in the presentation layer. Package B, which contains a class bClass and an interface bInterface is in the business layer. Package C, which contains cClass is in the data layer. Which is a poor practice?
Options
- AaClass calls a method in bClass.
- BaClass has an attribute of type cClass.
- CaClass realizes bInterface.
- DbClass realizes bInterface.
How the community answered
(27 responses)- A4% (1)
- B74% (20)
- C15% (4)
- D7% (2)
Community Discussion
No community discussion yet for this question.