Checking It

Select the correct answer to the following questions.

Multiple Choice

1:The relationship between class and object is similar to the relationship between:
  1. Mammal and horse.

  2. Mammal and rock.

  3. Horse and Bucefalus.

  4. Rock and Bucefalus.

2:If you have a friend class field, it can be accessed from:
  1. Anyone in this assembly and outside it.

  2. Anyone in this assembly.

  3. Anyone in the same namespace.

  4. Anyone in the same class.

3:When a new object is constructed using an empty constructor:
  1. Fields get initialized before the constructor is executed.

  2. Fields get initialized after the constructor is executed.

  3. Fields do not get initialized; the constructor must do that. ...

Get Visual Basic® .NET by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.