Answer the following statements true (T) or false (F)
1. Because every class directly or indirectly inherits from the Object class, every class inherits the Object class's members.
2. If a method in a subclass has the same signature as a method in the superclass, the subclass method overrides the superclass method.
3. An abstract class is not instantiated itself but serves as a superclass for other classes.
4. You can write a super statement that calls a superclass constructor but only in the subclass's constructor.
5. In an inheritance relationship, the subclass constructor always executes before the superclass constructor.
1. TRUE
2. TRUE
3. TRUE
4. TRUE
5. FALSE
You might also like to view...
Which of these options is available in the Print dialog?
A) Print Selected sheets B) Print All sheets C) Print Selected cells D) All of the above
The standard audio and video file format for Microsoft Windows is the ________ file type
A) .avi B) .mov C) .swf D) .mpg