[Solved] Creating new Class Java [closed]


You’ll need instance variables for the things you want to track, for example firstName, lastName, address. You can set and retrieve these values by making getters and setters for every instance variable. You could also make a constructor which assings the given arguments to the instance variables when you create a new resident, since every resident would probably need at least a firstName and other data.

solved Creating new Class Java [closed]