Answer the following statements true (T) or false (F)
1. New fields, properties, and methods cannot be added to a derived class unless these elements already existed in the base class.
2. When designing an object-oriented program, the best approach is to define a base class to hold all the general data about a group of similar objects, and then define derived classes for each specific type of object.
3. Only methods in a derived class can directly access the base class's private members.
4. When program code instantiates a derived class object, the base class constructor executes first, followed by the derived class constructor.
1. FALSE
2. TRUE
3. FALSE
4. TRUE
You might also like to view...
Which of the following is NOT a standard paper size in the United States?
A) 11" x 17" B) 8.5" x 11" C) 8.3" x 11.7" D) 8.5" x 14"
A customer with a SOHO requires fast, secure, cost-effective access to the Internet. Which of the following would be the MOST appropriate solution? (Select TWO).
A. OC3 line with built-in firewall B. DS3 line with a separate firewall C. Cable modem with a separate firewall D. Dial-up modem with separate firewall E. DSL router with firewall capabilities