Quiz
Overriding
Perguntas do quiz (5)
1One of the main concepts in OOP is _____________ That allows to use the features ( methods )of one class in another?
- ALibraries
- BInheritance
- Cpolymorphism
- Dabstraction
2Identify the child class in the java statement. public class Student extends Person{
- Apublic
- BStudent
- CPerson
- Dextends
3In Method Overriding the following the following conditions hold. Select more than one that apply
- AChild class method must have same name as in the parent class.
- BChild class method must have same parameter as in the parent class.
- CChild class method must have same return type as in the parent class
- DChild class method must have different name as in the parent class.
- EChild class method must have different return type as in the parent class
- FChild class can have different method signature
4Inheritance enhances the ability to reuse existing code.
- AVerdadeiro
- BFalso
5An object of a sub class can not be referenced by a variable of a super class type
- AVerdadeiro
- BFalso
Informações
- Descrição
- This Quiz aims to test the basic objective of inheritance
- Autor
- khameed
- Idioma
- English
- Visualizações
- 65
- Etiquetas
- Avaliação
- Ainda sem avaliações Avalie este quiz