IBM
C2140-833 · Question #31
An architect looks at two classes. The first class has the following operations: getName(),getSize(),getTotal(), and findAverage(). The second class has the following operations…
The correct answer is A. getName(), getSize(), and findAverage(). See the full explanation below for the reasoning.
Question
An architect looks at two classes. The first class has the following operations:
getName(),getSize(),getTotal(), and findAverage(). The second class has the following operations:
getName(),getSize(), findAverage(), findMinimum(), and findMaximum(). The two classes share the same superclass. Which operations are most likely contained in the superclass?
Options
- AgetName(), getSize(), and findAverage()
- BfindMaximum(), findMinimum(), getSize(), and getTotal()
- CgetName(), findAverage(), and findMaximum()
- DgetName(), getSize(), getTotal(), and findAverage()
How the community answered
(64 responses)- A75% (48)
- B14% (9)
- C3% (2)
- D8% (5)
Community Discussion
No community discussion yet for this question.