Subclass/Subclass

Interactive Video
•
Computers
•
11th Grade
•
Easy
Angel Ligon
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a 'has a' relationship in classes represent?
Instance variables within a class
A method within a class
A superclass extending a subclass
A subclass extending a superclass
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is true about the 'is a' relationship?
It describes a more specific version of something
A student has a person
It is always symmetrical
Every person is a student
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an example of an 'is a' relationship?
Every dog is an animal
A worker has a job title
A person has a name
A student has a person
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which attribute would only be found in a Student class and not in a Person class?
Name
Job title
Birthday
Grade
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which class would have a method to calculate GPA?
Person
Student
Animal
Worker
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a superclass?
To prevent code reuse
To store specific attributes of a subclass
To create a 'has a' relationship
To allow subclasses to inherit common attributes
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a subclass from a superclass?
Using the 'extends' keyword
By copying all attributes from the superclass
Subclasses cannot be created from superclasses
Using the 'implements' keyword
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
49W Exam 2 PLTW

Quiz
•
9th - 12th Grade
10 questions
Java

Quiz
•
11th Grade
10 questions
Database Normalization

Quiz
•
11th Grade
15 questions
APCS unit 9

Quiz
•
11th Grade
15 questions
DIT Excel 2016 Review

Quiz
•
8th - 12th Grade
9 questions
Inheritance quiz

Quiz
•
11th Grade
15 questions
Creating and using classes in Python

Quiz
•
9th - 12th Grade
15 questions
UnReal Engine Terms to Know

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
20 questions
Scalars, Vectors & Graphs

Quiz
•
11th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade