null
US
Sign In
Sign Up for Free
Sign Up
We have detected that Javascript is not enabled in your browser. The dynamic nature of our site means that Javascript must be enabled to function properly. Please read our
terms and conditions
for more information.
Next up
Copy and Edit
You need to log in to complete this action!
Register for Free
2375705
Overriding
Description
This Quiz aims to test the basic objective of inheritance
No tags specified
inheritance concept
overridding
accessing parent methods
Quiz by
khameed
, updated more than 1 year ago
More
Less
Created by
khameed
over 9 years ago
48
0
0
Resource summary
Question 1
Question
One of the main concepts in OOP is _____________ That allows to use the features ( methods )of one class in another?
Answer
Libraries
Inheritance
polymorphism
abstraction
Question 2
Question
Identify the child class in the java statement. public class Student extends Person{
Answer
public
Student
Person
extends
Question 3
Question
In Method Overriding the following the following conditions hold. Select more than one that apply
Answer
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
Question 4
Question
Inheritance enhances the ability to reuse existing code.
Answer
True
False
Question 5
Question
An object of a sub class can not be referenced by a variable of a super class type
Answer
True
False
Show full summary
Hide full summary
Want to create your own
Quizzes
for
free
with GoConqr?
Learn more
.
Similar
Social Influence
smita089
Fractions and percentages
Bob Read
Hitler and the Nazi Party (1919-23)
Adam Collinge
An Inspector Calls: Eric Birling
Rattan Bhorjee
Business Studies Unit 1
emily.mckechnie
The Digestive system
Elena Cade
Using GoConqr to learn Spanish
Sarah Egan
4. The Skeletal System - bones of the skull
t.whittingham
MAPA MENTAL DISEÑO GRAFICO
puntoideascali
1PR101 2.test - Část 9.
Nikola Truong
Mapa Conceptual
Julio Perez
Browse Library