Problem

True or FalseIf the answer is false, give an explanation.a. A private instance variable is...

True or False

If the answer is false, give an explanation.

a. A private instance variable is no different than a protected instance variable.


b. A subclass inherits all the methods from the base class except for the constructors.


c. X extends Y means that Y inherits from X.


d. Every class extends Object.


e. The main advantage of inheritance is to save the programmer the trouble of retyp­ing sections of class definitions.


f. X inherits from Y implies X is-a Y


g. Y inherits from X implies X has-a Y.


h. X is in love with Y implies X wants-a Y.


i. It is illegal for a class to extend two classes.


j. It is legal for more than one class to extend the same class.


k. It is illegal for a class to implement more than one interface.


l. There is no difference between an abstract class and an interface.


m. An interface can have only private instance variables.


n. An interface never implements its methods.


o. An interface can be instantiated if it has no static constants.


p. An interface has no instance variables.


q. If X extends Y then X has-a Y.


r. If X extends Y then X is-a Y.


s. It is illegal for a class to have two attributes with the same name.


t. It is illegal for a subclass to have an attribute with the same name as an attribute in its superclass.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 12
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT