Checking It

Select the correct answer to the following questions.

Multiple Choice

1:What field modifiers are allowed in interfaces?
  1. Public and Private.

  2. Public, Protected, and Private.

  3. None, all fields are public by default.

  4. None, interfaces do not have fields.

2:What modifiers can have properties and methods in an interface (mark all that apply)?
  1. Access modifiers (Public, Protected, Friend, and Private).

  2. Shared.

  3. Overridable, NotOverriddable, MustOverride.

  4. Overloads.

3:If a class chooses to implement only some of the methods of an interface, you call it:
  1. A partial implementation. The clients can use only the implemented methods.

  2. Not possible, the class ...

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.