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 más 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

Brainstorming con Mapas Mentales
Diego Santos
Los Derechos Humanos
crisferroeldeluna
Estructura física y lógica de las computadoras
mauriciofrog
Resumen sobre Los Reyes Católicos
maya velasquez
Test Principios
wendy tojin
Anatomia Aparato Reproductor Femenino
Luz MoOr
ANÁLISIS DE DATOS EN LA INVESTIGACIÓN CUALITATIVA
Johanna Morales Genecco
Todos mis RECURSOS...
Ulises Yo
Pasado simple del verbo "To be"
Juan Pablo Ospino Rodriguez
CÁLCULO MENTAL...
Ulises Yo
Estructura y Funcionamiento del Estado colombiano
Maria Camila RODRIGUEZ MORENO