Checking It

Select the correct answer(s) to the following questions.

Multiple Choice

1:What are the reasons the use of inheritance is a good programming practice (select all that apply)?
  1. Code reuse.

  2. Permits the use of polymorphism.

  3. Promotes encapsulation.

  4. It is a more structured approach.

2:What is the correct term for a class that inherits from another class (select all that apply)?
  1. Abstract class.

  2. Specialized class.

  3. Generalized class.

  4. Derived class.

3:Polymorphism is implemented using:
  1. Method overloading.

  2. Method overriding.

  3. Both.

  4. None.

4:Can a method that overrides a base class method call the base method?
  1. No, this is illegal.

  2. Yes it can, nothing special ...

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.