khameed
Test por , creado hace más de 1 año

This Quiz aims to test the basic objective of inheritance

48
0
0
khameed
Creado por khameed hace alrededor de 9 años
Cerrar

Overriding

Pregunta 1 de 5

1

One of the main concepts in OOP is _____________ That allows to use the features ( methods )of one class in another?

Selecciona una de las siguientes respuestas posibles:

  • Libraries

  • Inheritance

  • polymorphism

  • abstraction

Explicación

Pregunta 2 de 5

1

Identify the child class in the java statement. public class Student extends Person{

Selecciona una de las siguientes respuestas posibles:

  • public

  • Student

  • Person

  • extends

Explicación

Pregunta 3 de 5

1

In Method Overriding the following the following conditions hold. Select more than one that apply

Selecciona una o más de las siguientes respuestas posibles:

  • Child class method must have same name as in the parent class.

  • Child class method must have same parameter as in the parent class.

  • Child class method must have same return type as in the parent class

  • Child class method must have different name as in the parent class.

  • Child class method must have different return type as in the parent class

  • Child class can have different method signature

Explicación

Pregunta 4 de 5

1

Inheritance enhances the ability to reuse existing code.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 5 de 5

1

An object of a sub class can not be referenced by a variable of a super class type

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación