What does a 'has a' relationship in classes represent?
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
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 Quizizz
12 questions
J808 LO4.4 Preventative Measures (Logical)

Quiz
•
10th - 11th Grade
9 questions
HTML Basics

Quiz
•
9th Grade - Professio...
15 questions
Database Concepts

Quiz
•
11th Grade
15 questions
Pemrograman Berorintasi Objek

Quiz
•
11th Grade
12 questions
Unit 9 topic 2 quiz

Quiz
•
9th - 12th Grade
15 questions
DIT Excel 2016 Review

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

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

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University