
Java Inheritance Practice

Quiz
•
Computers
•
11th - 12th Grade
•
Medium

Khalil Youssef
Used 58+ times
FREE Resource
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2.
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
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A class that is inherited is called a ______ .
superclass
Subclass
subsetclass
Relativeclass
4.
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();
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cat class extends Predator class.
Which of the following must be true?
A Cat object has access to all Predator variables and methods.
A Predator object has access to all Cat variables and methods.
Cat c = new Predator();
causes an error.
Predator p = new Cat();
p has access to Cat methods and uses the Predator implementations.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Create a free account and access millions of resources
Similar Resources on Wayground
17 questions
OOP Long Quiz

Quiz
•
12th Grade
12 questions
49W Exam 2 PLTW

Quiz
•
9th - 12th Grade
15 questions
PCEP Section 4C: Python Built-In Exceptions Hierarchy

Quiz
•
12th Grade
12 questions
AP CSA | U1: Object-Oriented Programming By Mr. Benvenuto

Quiz
•
12th Grade
18 questions
Abstraction and OO principles

Quiz
•
12th Grade
20 questions
Java Packages

Quiz
•
12th Grade
20 questions
Java, part I

Quiz
•
11th Grade - University
20 questions
Kuis Pilihan Ganda PBO

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade