Last Updated on August 9, 2024
AP Computer Science Unit 9 Test Review Practice Questions. AP Computer Science Principles (CSP) Unit 9: Inheritance Review Practice Test 2024: College Board’s Advanced Placement® Program (AP®) Computer Science Principles (CSP) Unit 9.
In Unit 9, “Inheritance,” you focus on extending existing classes and creating hierarchies that allow you to reuse code efficiently. This unit covers the principles of inheritance, method overriding, polymorphism, and how to work with class hierarchies. Here’s an overview of the key topics and sample multiple-choice questions (MCQs).
AP Computer Science Unit 9 Test Review Practice Questions
AP CSP Practice Test 2024 Study Guide [UPDATED]
- Unit 1: Primitive Types
- Unit 2: Using Objects
- Unit 6: Array,
Unit 7: ArrayList
Unit 8: 2D Array - Unit 9: Inheritance
- Unit 10: Recursion
Topics Overview
Using Common Attributes and Behaviors
- Superclasses: General classes that provide common attributes and behaviors.
- Subclasses: Specialized classes that inherit from superclasses and extend or modify their functionality.
Defining and Overriding Methods
- Method Overriding: Redefining a method in a subclass that was already defined in its superclass.
- Method Signature: The method name, return type, and parameters.
Creating References Using Inheritance Hierarchies
- Superclass References: Variables that can reference objects of a subclass type.
- Subclass Objects: Instances of subclasses that can be referenced using superclass variables.
Associating Subclass Objects with Superclasses to Create Polymorphism
- Polymorphism: The ability for objects of different subclasses to be treated as objects of their superclass.
- Dynamic Binding: The process by which the Java runtime determines the method to be invoked.