-
-
Save oleander/835937 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class Mixologist extends Person { | |
protected static Integer numServings = 0; | |
protected static synchronized void addServing() | |
{ | |
numServings++; | |
} | |
... | |
} | |
Compiling Simulation | |
Landlord.jr:98: numServings has private access in Mixologist | |
say(" Number of served customers: " + numServings + "\n"); | |
^ | |
Not generating jrGen/Landlord.java due to errors. | |
1 error | |
Landlord.jr:98: numServings has private access in Mixologist | |
say(" Number of served customers: " + numServings + "\n"); | |
^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment