Questions

  1. Which of the following best describes a program in which we have multiple functions with the same name but they differ in terms of the number of parameters and types of parameters accepted by them?

    1. Method overloading

    2. Method overriding

    3. Encapsulation

    4. Abstraction

  2. Which keyword must be used when a derived class is defining the implementation of a function that's present in the base class?

    1. New

    2. Abstract

    3. Virtual

    4. Override

  1. Which keyword can we use to prevent the inheritance of a particular class?
    1. Abstract

    2. Private

    3. Sealed

    4. Protected

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.217.17