Quiz
Overriding
Fragen in diesem 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.
- ARichtig
- BFalsch
5An object of a sub class can not be referenced by a variable of a super class type
- ARichtig
- BFalsch
Informationen
- Beschreibung
- This Quiz aims to test the basic objective of inheritance
- Autor
- khameed
- Sprache
- English
- Aufrufe
- 65
- Schlagwörter
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz