All Subjects
Light
collapse
Practice Quizzes
AP Computer Science A
Unit 9 – Inheritance in Object-Oriented Programming
Topic null
If classes E and F are created using the headers “public class E extends C” and “public class F extends C” respectively, what is true about them?
Class E has access to all of Class F’s instance variables and methods, but Class F does not have access to any of Class E’s instance variables and methods
Class E and Class F have access to all of each other’s instance variables and methods
Class E and Class F both have access to all of Class C’s instance variables and methods
All of Class E’s and all of Class F’s instance variables and methods can be accessed by Class C
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
extends
public class
C
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