Answer the following statements true (T) or false (F)
1. A base class's constructors are inherited into its derived classes.
2. The first task of any base class’s constructor is to call its derived class’s constructor.
3. To call the base-class default constructor explicitly, the call to a base-class constructor must be the first statement in the derived-class-constructor definition.
4. When you call an Overridable base class method on a derived class object, the base class version of the method executes. This is the basis of polymorphism.
5. When a program creates a derived-class object, the Object constructor is the last constructor called and the first whose body finishes executing.
1. False. Constructors are never inherited—they are specific to the class in which they are declared
2. False. The first task of any derived class’s constructor is to call its base class’s constructor.
3. True.
4. False. When you call an Overridable base class method on a derived class object, the derived class version of the method executes. This is the basis of polymorphism.
5. True.
You might also like to view...
The items in a list box belong to which collection?
Items ListItems List Values
Sex refers to ______, while gender refers to ______.
A. Sexual orientation; physiological differences B. Nurture; nature C. Physiological differences; socially constructed roles D. Learning; chromosomes
Redundancy is the storing of a piece of data in more than one place.
Answer the following statement true (T) or false (F)
Greg is building a disaster recovery plan for his organization and would like to determine the amount of time that it should take to restore a particular IT service after an outage. What variable is Greg calculating?
A. MTD B. RTO C. RPO D. SLA