GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

Overriding

khameed 5 Fragen

Quiz starten

Fragen in diesem Quiz (5)

  1. 1One of the main concepts in OOP is _____________ That allows to use the features ( methods )of one class in another?
    1. ALibraries
    2. BInheritance
    3. Cpolymorphism
    4. Dabstraction
  2. 2Identify the child class in the java statement. public class Student extends Person{
    1. Apublic
    2. BStudent
    3. CPerson
    4. Dextends
  3. 3In Method Overriding the following the following conditions hold. Select more than one that apply
    1. AChild class method must have same name as in the parent class.
    2. BChild class method must have same parameter as in the parent class.
    3. CChild class method must have same return type as in the parent class
    4. DChild class method must have different name as in the parent class.
    5. EChild class method must have different return type as in the parent class
    6. FChild class can have different method signature
  4. 4Inheritance enhances the ability to reuse existing code.
    1. ARichtig
    2. BFalsch
  5. 5An object of a sub class can not be referenced by a variable of a super class type
    1. ARichtig
    2. BFalsch

Informationen

Beschreibung
This Quiz aims to test the basic objective of inheritance
Autor
khameed
Sprache
English
Aufrufe
65
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck