Tuesday, August 17, 2010

Inheriting the exception class

1. What Visual Basic keyword is used to implement inheritance in a class?
"Inherits"

2. In the event of an exception, what does the Message property of the Exception class contain?
It contains a string that tells the user what the problem is.

Which keyword gives a child class access to all of it’s parent’s public & protected members?
"MyBase"

What is the first statement in a child class constructor?
"MyBase.New(ErrorMessage)"

No comments:

Post a Comment