
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 Quizizz
20 questions
Kuis Pilihan Ganda PBO

Quiz
•
11th Grade
18 questions
Abstraction and OO principles

Quiz
•
12th Grade
20 questions
Uji Pemahaman OOP dengan Python

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

Quiz
•
9th - 12th Grade
17 questions
OOP Long Quiz

Quiz
•
12th Grade
19 questions
Unit 9 CSA

Quiz
•
11th Grade
20 questions
Java, part I

Quiz
•
11th Grade - University
18 questions
Object Orientated Programming (BTEC Computing)

Quiz
•
11th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade