Light
collapse
Practice Quizzes
AP Computer Science A
Unit 9 – Inheritance in Object-Oriented Programming
Topic null
If we want to create a Vehicle class and a Truck class, which of the following makes the most sense?
Making Vehicle and Truck two separate classes without any relationship.
Making Truck the superclass and Vehicle the subclass.
More information is needed to appropriately create the classes.
Making Vehicle the superclass and Truck the subclass.
Related content
Practice quizzes
Practice this subject
Practice this unit
Practice this topic
Additional resources (1)
AP Computer Science A - 9.1 Creating Superclasses and Subclasses
Key terms
Truck class
Vehicle class
About Us
About Fiveable
Blog
Careers
Testimonials
Code of Conduct
Terms of Use
Privacy Policy
CCPA Privacy Policy
Resources
Cram Mode
AP Score Calculators
Study Guides
Practice Quizzes
Glossary
Crisis Text Line
Request a Feature
Report an Issue
Stay Connected
© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.
About Us
About Fiveable
Blog
Careers
Testimonials
Code of Conduct
Terms of Use
Privacy Policy
CCPA Privacy Policy
Resources
Cram Mode
AP Score Calculators
Study Guides
Practice Quizzes
Glossary
Crisis Text Line
Request a Feature
Report an Issue
© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.
Back
Practice Quiz
Guides
Glossary
Guides
Glossary
Next