Which of the following clauses allows a derived class named Dog to have the same attributes and behaviors as its base class, which is named Animal?
a. Inherits Animal
b. Inherits Dog
c. Overloads Dog
d. Overrides Animal
A base class contains a method named GetBonus. Which of the following procedure headers can be used in the base class to indicate that a derived class can provide its own code for the method?
a. Public Inherits Sub GetBonus()
b. Public Overloads Sub GetBonus()
c. Public Overridable Sub GetBonus()
d. Public Overrides Sub GetBonus()
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here