What this deck covers
This deck focuses on Anatomy Of A Class, giving you a quick way to review the definitions, rules, and examples that matter most for AP Computer Science a.
Study Anatomy Of A Class in AP Computer Science a with focused flashcards that help you recognize the idea, recall the key rule, and apply it in practice-style prompts.
0% Complete
What is the signature of a method?
Tap card or press Space to flip
The method's name and parameter list. Identifies method for compilation and overriding.
How well did you know it?
Card 1 / 67
Space to flip · ← / → to move · once flipped, → Got it · ← Still learning
This deck focuses on Anatomy Of A Class, giving you a quick way to review the definitions, rules, and examples that matter most for AP Computer Science a.
Work through these flashcards in short sessions. Try to answer each prompt before flipping the card, then revisit any cards you miss until the explanation feels automatic.
Answer: The method's name and parameter list. Identifies method for compilation and overriding.
Answer: To initialize a new object of a class. Sets initial values for object fields.
Answer: Redefining a method in a subclass that exists in the superclass. Child class replaces parent's method implementation.
Answer: A block of code that performs a specific task. Defines behavior that objects can perform.
Answer: Hiding data fields using access modifiers. Core OOP principle for data protection.
Answer: Object. Root class that all Java classes inherit from.
Answer: To specify methods that a class must implement. Enforces method contracts without implementation.
Answer: A class that cannot be instantiated and may contain abstract methods. Serves as template requiring subclass implementation.
Answer: The method's name and parameter list. Identifies method for compilation and overriding.
Answer: To define class-level fields and methods. Belongs to class rather than instances.
Answer: private. Most restrictive access level for data hiding.
Answer: A blueprint for creating objects, defining fields and methods. Encapsulates data and behavior for object creation.
Answer: To initialize a new object of a class. Sets initial values for object fields.
Answer: Defining multiple methods with the same name but different parameters. Same name, different parameter signatures.
Answer: A class that cannot be instantiated and may contain abstract methods. Serves as template requiring subclass implementation.
Answer: public. Provides unrestricted access from anywhere.
Answer: toString(). Provides readable format for object display.
Answer: Constructor. Special method that sets up new object instances.
Answer: final. Prevents inheritance to maintain class integrity.
Answer: Object. Root class that all Java classes inherit from.
Answer: import. Makes external classes available in current file.
Answer: implements. Establishes contract between class and interface.
Answer: Refers to the current instance of a class. Distinguishes between instance and parameter variables.
Answer: A variable declared within a class. Stores data as part of an object's state.
Answer: == checks reference; equals() checks value equality. Reference vs content comparison distinction.
Answer: abstract. Prevents direct instantiation of the class.
Answer: == checks reference; equals() checks value equality. Reference vs content comparison distinction.
Answer: extends. Creates parent-child relationship between classes.
Answer: Refers to the current instance of a class. Distinguishes between instance and parameter variables.
Answer: The ability to process objects differently based on their data type. Enables one interface with multiple implementations.
Answer: Constructor. Invoked immediately upon object instantiation.
Answer: Hiding data fields using access modifiers. Core OOP principle for data protection.
Answer: final. Makes fields or variables unchangeable after initialization.
Answer: A mechanism where one class acquires the properties of another. Child class gains parent's properties and methods.
Answer: import. Makes external classes available in current file.
Answer: new. Allocates memory and invokes the constructor.
Answer: private. Most restrictive access level for data hiding.
Answer: A variable declared within a class. Stores data as part of an object's state.
Answer: default (no modifier). Package-private access when no modifier specified.
Answer: An instance of a class containing fields and methods. A concrete realization of a class template.
Answer: Defining multiple methods with the same name but different parameters. Same name, different parameter signatures.
Answer: equals(). Compares object content rather than references.
Answer: default (no modifier). Package-private access when no modifier specified.
Answer: A namespace that organizes classes and interfaces. Groups related classes for organization.
Answer: To define class-level fields and methods. Belongs to class rather than instances.
Answer: new. Allocates memory and invokes the constructor.
Answer:
Answer: A namespace that organizes classes and interfaces. Groups related classes for organization.
Answer: Yes, a class can implement multiple interfaces. Multiple inheritance through interfaces is allowed.
Answer: super. Calls parent constructor or method explicitly.
Answer: The superclass of the current object. Accesses parent class members and methods.
Answer: class. The reserved word that starts all class definitions.
Answer: Redefining a method in a subclass that exists in the superclass. Child class replaces parent's method implementation.
Answer: false. Primitive types initialize to false automatically.
Answer: A blueprint for creating objects, defining fields and methods. Encapsulates data and behavior for object creation.
Answer: Constructor. Special method that sets up new object instances.
Answer: A block of code that performs a specific task. Defines behavior that objects can perform.
Answer: class. The reserved word that starts all class definitions.
Answer: super. Calls parent constructor or method explicitly.
Answer: Yes, a class can implement multiple interfaces. Multiple inheritance through interfaces is allowed.
Answer: false. Primitive types initialize to false automatically.
Answer: The ability to process objects differently based on their data type. Enables one interface with multiple implementations.
Answer: extends. Creates parent-child relationship between classes.
Answer: toString(). Provides readable format for object display.
Answer: public. Provides unrestricted access from anywhere.
Answer: Constructor. Invoked immediately upon object instantiation.
Answer: An instance of a class containing fields and methods. A concrete realization of a class template.