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...
If you want to read into a c-string, you must ensure that the user does not enter more characters than
a. The size of the c-string b. The size of the c-string + 1 c. The size of the c-string -1 d. It doesn't matter.
All of the following are wrapper classes except:
(a) String (b) Integer (c) Character (d) Double
What is meant by the term patched-up prototype?
What will be an ideal response?
How do WINS servers learn the NetBIOS names of computers on the network?
A. The computers broadcast their names. B. The server uses the LMHOSTS file. C. The computers register their names with the WINS server. D. Through DNS name resolution.