
Inheritance in Java

Quiz
•
Computers
•
University
•
Medium
Mrs.C. Rathika
Used 208+ times
FREE Resource
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
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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.
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Technical Quiz R1

Quiz
•
University
20 questions
JDBC

Quiz
•
University
21 questions
Software Engineering Basics

Quiz
•
University
25 questions
Workshop Quiz

Quiz
•
University
25 questions
Java - SET -1

Quiz
•
University
25 questions
JAVA BASICS

Quiz
•
University
15 questions
Java Bootcamp Day 4

Quiz
•
University
20 questions
Quiz on Java

Quiz
•
University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade