CodeHS 4.12 Inheritance

CodeHS 4.12 Inheritance

9th - 12th Grade

7 Qs

quiz-placeholder

Similar activities

Superclass

Superclass

10th - 12th Grade

5 Qs

AP CSA Unit 9 Inheritance

AP CSA Unit 9 Inheritance

10th - 12th Grade

5 Qs

APCSA Inheritance, Superclass, Subclass

APCSA Inheritance, Superclass, Subclass

10th - 12th Grade

5 Qs

CodeHS 4.15 Interfaces

CodeHS 4.15 Interfaces

9th - 12th Grade

10 Qs

AP CSA - Inheritance, plus one while loop.

AP CSA - Inheritance, plus one while loop.

12th Grade

10 Qs

Java Inheritance

Java Inheritance

11th Grade - University

10 Qs

CodeHS 5.6 The List Interface

CodeHS 5.6 The List Interface

9th - 12th Grade

10 Qs

Post Test Multilevel Pewarisan

Post Test Multilevel Pewarisan

11th Grade

6 Qs

CodeHS 4.12 Inheritance

CodeHS 4.12 Inheritance

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Aaron Pavao

Used 8+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we like to use classes?

They let us save the state and behavior of objects

It's good to be classy

So we can encapsulate each program in a separate class

Because it's easier to learn

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a hierarchy?

Any group of objects ranked so that every one but the topmost is subordinate to a specified one above it

A level or rank in an organization

The bourgeoisie

The person or organization in charge

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword do we use to create a class based on another class?

extends

subclass

superclass

super

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When class Bar is based on class Foo, what do we call Bar?

subclass

superclass

extends

super

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When class Bar is based on class Foo, what do we call Foo?

subclass

superclass

extends

super

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

It is possible to create a class that isn't based on any other class.

true

false

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does it mean to override a superclass method?

A method in the subclass has the same signature as one in the superclass, and the subclass method is used

A method in the subclass has the same signature as one in the superclass, and the superclass method is used

An instance variable in the subclass has the same signature as one in the superclass, and the subclass instance variable is used

A instance variable in the subclass has the same signature as one in the superclass, and the superclass instance variable is used