Overriding

Descripción

This Quiz aims to test the basic objective of inheritance
khameed
Test por khameed, actualizado hace más de 1 año
khameed
Creado por khameed hace alrededor de 9 años
48
0

Resumen del Recurso

Pregunta 1

Pregunta
One of the main concepts in OOP is _____________ That allows to use the features ( methods )of one class in another?
Respuesta
  • Libraries
  • Inheritance
  • polymorphism
  • abstraction

Pregunta 2

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

Pregunta 3

Pregunta
In Method Overriding the following the following conditions hold. Select more than one that apply
Respuesta
  • 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

Pregunta 4

Pregunta
Inheritance enhances the ability to reuse existing code.
Respuesta
  • True
  • False

Pregunta 5

Pregunta
An object of a sub class can not be referenced by a variable of a super class type
Respuesta
  • True
  • False
Mostrar resumen completo Ocultar resumen completo

Similar

Capítulo II. Ciclo de vida del proyecto
molo544
Freud: Pasión Secreta
Cesar_Adolfo
Vocabulario Inglés Avanzado - Hats
Diego Santos
Inglés para Selectividad
Diego Santos
Elementos de la Tabla Periódica
Roberto Jerónimo
Preparacion TOEFL page 382
Jorge Silva Granados
Finanzas
marcov7154
como elaborar un mapa mental
Maria Gineth Arenas
Test de Ecuaciones Factorizadas
MANUEL LUIS PÉREZ SALAZAR
Ley de fomento y las fuentes de financiación o apoyo que se pueden encontrar a nivel nacional.
Liceth Baron