© Doug Winnie 2021
D. WinnieEssential Java for AP CompScihttps://doi.org/10.1007/978-1-4842-6183-5_54

54. Make All the Things…Classes

Doug Winnie1  
(1)
Mission Hills, KS, USA
 

Now that we have a basic character class and our character sheets, we can start to learn how these can be created in Java as object-oriented classes.

Classes in Java define four main things:
  1. 1.

    What is the name of the class and how does it fit within the hierarchy and how is it classified using an interface

     
  2. 2.

    What are the values that are stored and used within each unique instance of the class

     
  3. 3.

    What are the actions that each unique instance of the class can perform

     
  4. 4.

    What rules govern how each unique instance is created during construction

     

Creating Some Class

We can start with ...

Get Essential Java for AP CompSci: From Programming to Computer Science now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.