GoConqr has a new look! Let us know what you think.

Quiz

Overriding

khameed 5 questions

Take the quiz

Questions in this 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. ATrue
    2. BFalse
  5. 5An object of a sub class can not be referenced by a variable of a super class type
    1. ATrue
    2. BFalse

Information

Description
This Quiz aims to test the basic objective of inheritance
Author
khameed
Language
English
Views
65
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?