Overriding

Descrição

This Quiz aims to test the basic objective of inheritance
khameed
Quiz por khameed, atualizado more than 1 year ago
khameed
Criado por khameed aproximadamente 9 anos atrás
48
0

Resumo de Recurso

Questão 1

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

Questão 2

Questão
Identify the child class in the java statement. public class Student extends Person{
Responda
  • public
  • Student
  • Person
  • extends

Questão 3

Questão
In Method Overriding the following the following conditions hold. Select more than one that apply
Responda
  • 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

Questão 4

Questão
Inheritance enhances the ability to reuse existing code.
Responda
  • True
  • False

Questão 5

Questão
An object of a sub class can not be referenced by a variable of a super class type
Responda
  • True
  • False

Semelhante

Aprenda a fazer uma boa Redação em 5 passos
Alessandra S.
Etica da Advocacia
kellisim
Principais temas para estudar em Biologia
GoConqr suporte .
Pré-História
Valdemir Júnior
O que estudar para Exame da Ordem
GoConqr suporte .
Comunicação Social para Concurseiros
Ricardo Olimpio
Reino Monera
nathaliaires
2a Lei de Mendel
Andrea Barreto M. Da Poça
Grécia antiga: formação
jacson luft
Grécia Clássica
jacson luft