
Inheritance in Java
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Mrs.C. Rathika
Used 219+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following Syntax is used for?
class Subclass-name extends Superclass-name
{
//methods and fields
}
Polymorphism
Encapsulation
Inheritance
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A class that is inherited is called a ______ .
superclass
Subclass
subsetclass
Relativeclass
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Class Cat extends Animal. Which is NOT a valid declaration?
Cat x = new Cat();
Animal X = new Animal();
Cat x = new Animal();
Animal x = new Cat();
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does polymorphism mean?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these cannot be passed down through inheritance?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Java, each child class can have only one parent.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When overloading a method, the method header ________ .
Must exactly match the header of the method you are overloading.
Must have the same name, but differ in order, number, or type of parameters.
Can differ in name, but must have the same number and order of parameters.
Can be completely different from the method you are overloading, but must have @Override.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
GIS Unit III
Quiz
•
University
15 questions
Internet Basics
Quiz
•
5th Grade - University
15 questions
ADB Quiz #1
Quiz
•
University
15 questions
Computer and Other Human Inventions
Quiz
•
University
16 questions
Pengantar Teknologi Informasi 7
Quiz
•
University
15 questions
Robotics Prelim
Quiz
•
University
17 questions
Archivos
Quiz
•
University
20 questions
Digital and Analog transmission
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
