48.1k views
1 vote
In a class hierarchy A. The more general classes are toward the bottom of the tree and the more specialized are toward the top B. The more general classes are toward the top of the tree and the more specialized are toward the bottom C. The more general classes are toward the left of the tree and the more specialized are toward the right D. The more general classes are toward the right of the tree and the more specialized are toward the left

User Dave Olson
by
5.2k points

1 Answer

2 votes

Answer:

Option B

Step-by-step explanation:

Option A is rejected because the general behavior of the objects are the reason that the classes concept was introduced and thus the general class should be on the top.

Option B is selected because down the hierarchy the common behavior in classes are reduced and thus they became more specialized and thus the specialized classes should be bottom to the general ones.

Option C is rejected because hierarchy works from top to bottom not from left to right.

Option D is not answer because hierarchy has nothing to do with left and right.

User Chriszumberge
by
4.9k points