Answer the following statements true (T) or false (F)
1. If a base class does not have a parameterless constructor, its derived class constructor must use the notation: base(parameter List) to call one of the base class's parameterized constructors.
2. If a reference to a base class object calls a method that has been overridden by a derived class, the derived class's version of the method is the one that executes.
3. Properties in a base class can be overridden in the same way that methods can be overridden.
4. If a derived class introduces additional methods, properties, or fields, a base class reference variable cannot access them.
1. TRUE
2. FALSE
3. TRUE
4. TRUE
You might also like to view...
A constructor cannot:
a. be overloaded. b. initialize variables to their defaults. c. specify return types or return values. d. have the same name as the class.
Which of the following can be used to determine whether the accounts.txt file exists?
A. If IO.Exists.File("accounts.txt") Then B. If IO.File.Exists("accounts.txt") Then C. If IO.File("accounts.txt") Then D. If IO.Exists("accounts.txt") Then