Zusammenfassung der Ressource
Frage 1
Frage
One of the main concepts in OOP is _____________ That allows to use the features ( methods )of one class in another?
Antworten
-
Libraries
-
Inheritance
-
polymorphism
-
abstraction
Frage 2
Frage
Identify the child class in the java statement. public class Student extends Person{
Antworten
-
public
-
Student
-
Person
-
extends
Frage 3
Frage
In Method Overriding the following the following conditions hold. Select more than one that apply
Antworten
-
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
Frage 4
Frage
Inheritance enhances the ability to reuse existing code.
Frage 5
Frage
An object of a sub class can not be referenced by a variable of a super class type