1. When classes are related where one class defines common features for other classes, this type of class forms a(n) __________? (Points : 4) Base class Inheritance hierarchy Aggregation None of the Above 2. A ________class refers to any of the classes below a particular class in an inheritance hierarchy? (Points : 4) Descendant Instance Inheritance Hierarchy 3. Aggregation and composition both implement a _______ relationship? (Points : 4) is-a does-a has-a None of the above 4. Inheritance implements a ________ relationship? (Points : 4) is-a does-a has-a None of the above 5. When deciding on the relationship between two classes it is extremely hard to determine if you should use inheritance or composition. (Points : 4) True False 6. Global stuff takes precedence over local stuff. (Points : 3) True False 7. You can access an overridden method by prefixing the common method name with ______ and then a dot. (Points : 4) Sub Pre Post Super 8. Inheritance allows you to re-use code that was written for another context. (Points : 4) True False 9. What modifier do you use to prevent that class from having any subclasses? (Points : 4) Public Private Final Static

Leave a Reply

Your email address will not be published. Required fields are marked *