Question: Question 10.05 pts If A Is-A B, what else can we say about the relationship between class A and class B? Class A extends class
Question 10.05 pts
If A "Is-A" B, what else can we say about the relationship between class A and class B?
| Class A extends class B |
| Class A inherits from class B |
| Class A derives from class B. |
| None of the above. |
| All of the above. |
Flag this Question
Question 20.05 pts
What tool is used to show inheritance or composition relationships among classes.
| a class diagram |
| a flow chart |
| an object diagram |
| a family tree |
Flag this Question
Question 30.05 pts
Which of the following is a specialized version of a class.
| an ancestor |
| a subclass |
| a superclass |
| class Object |
| class Class |
Flag this Question
Question 40.05 pts
Which of the following statements is true?
| Objects NEVER change the class to which they belong. |
| In some situations, a variable may be bound to DIFFERENT types of objects. |
| The behavior of any object is determined by the OBJECT'S CLASS and not by the data type of the variable that references it. |
| All of the above. |
| None of the above. |
Flag this Question
Question 50.05 pts
Given this start to a class definition: public class Beta extends Alpha { ... } What is true about instance variables from Alpha?
| Class Beta must redeclare all of Alpha's instance variables. |
| They should not be redeclared in Beta. |
| The Beta class should redeclare only those instance variables from Alpha that it wants. |
| Class Beta should redeclare only the private instance variables from Alpha. |
| None of the above |
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
