Unit 5: Writing Classes
Class Periods: 12-14
AP CSA Exam Weighting: 5-7.5%
5.1. Anatomy of a Java Class
- 5.1.1. Creating a Class
- 5.1.2. Designing a Class
- 5.1.3. Instance Variables
- 5.1.4. Methods
- 5.1.5. Object-Oriented Design
- 5.1.6. Programming Challenge : Riddle Class
- 5.1.7. Design a Class for your Community
- 5.1.8. Summary
- 5.1.9. AP Practice
5.2. Writing Constructors
- 5.2.1. Constructor Signature
- 5.2.2. The Job of a Constructor
- 5.2.3. Advanced AP Topic: Reference parameters
- 5.2.4. Programming Challenge : Student Class
- 5.2.5. Design a Class for your Community
- 5.2.6. Summary
- 5.2.7. AP Practice
5.3. Comments and Conditions
- 5.3.1. Comments
- 5.3.2. Preconditions and Postconditions
- 5.3.3. Software Validity and Use-Case Diagrams
- 5.3.4. Agile Software Development
- 5.3.5. Programming Challenge : Comments and Conditions
- 5.3.6. Summary
5.4. Accessors / Getters
- 5.4.1. toString
- 5.4.2. Programming Challenge : Class Pet
- 5.4.3. Summary
- 5.4.4. AP Practice
5.5. Mutators / Setters
- 5.5.1. How to write a setter
- 5.5.2. Programming Challenge : Class Pet Setters
- 5.5.3. Summary
- 5.5.4. AP Practice
5.6. Writing Methods
- 5.6.1. Parameters
- 5.6.2. Programming Challenge : Song with Parameters
- 5.6.3. Design a Class for your Community
- 5.6.4. Summary
- 5.6.5. AP Practice
5.7. Static Variables and Methods
- 5.7.1. Programming Challenge : Static Song and counter
- 5.7.2. Summary
5.8. Scope and Access
- 5.8.1. Programming Challenge : Debugging
- 5.8.2. Summary
- 5.8.3. AP Practice
5.9. this Keyword
- 5.9.1. Programming Challenge : Bank Account
- 5.9.2. Summary
- 5.9.3. AP Practice
5.10. Social Impacts of CS
- 5.10.1. POGIL Groupwork: Impacts of CS
- 5.10.2. Summary
5.11. Unit 5 Summary
- 5.11.1. Concept Summary
- 5.11.2. Java Keyword Summary
- 5.11.3. Vocabulary Practice
- 5.11.4. Common Mistakes
5.12. Mixed Up Code Practice
5.13. Toggle Mixed Up or Write Code Practice
5.14. Multiple-Choice Exercises
5.15. Midterm Test
5.16. Free Response Question (FRQ) for Classes
- 5.16.1. 2019 StepTracker Class FRQ
- 5.16.2. Determining the Instance Variables
- 5.16.3. Writing the Class Header and Constructor
- 5.16.4. Writing the Accessor Method activeDays
- 5.16.5. Writing the Mutator Method addDailySteps
- 5.16.6. Writing the Accessor Method averageSteps
5.17. Free Response Question - Time
5.18. Free Response Question - APLine
- 5.18.1. Try and Solve It
5.19. College Board Celebrity and Data Labs
5.20. Design a Class for your Community Project
- 5.20.1. Code your Class
- 5.20.2. Optional Swing GUI