Question
1. What is another name for an is-arelationship? a) composition b) abstraction c) generalization/specialization d) kind-of/example 2.Inheritance is a) a mechanism that uses generalization/specialization relationships.
1. What is another name for an is-arelationship?
a) composition
b) abstraction
c) generalization/specialization
d) kind-of/example
2.Inheritance is
a) a mechanism that uses generalization/specialization relationships.
b) a mechanism for relating classes and objects.
c) a relationship that establishes levels in a class hierarchy.
d) a mechanism to share identifications and descriptions.
3. If two methods in a class hierarchy have the same name,
a) the classes that contain them cannot be included in the same program.
b) one method must have fewer parameters than the other to ensure uniqueness.
c) the method name must be appended to the class name on invokation.
d) an object name must precede the method name when either method is invoked.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started