Class PrivateConstructorInstantiationDemo

java.lang.Object
samples.constructor.PrivateConstructorInstantiationDemo

public class PrivateConstructorInstantiationDemo extends Object
Class used to demonstrate the private constructor instantiation.
  • Field Details

    • state

      private final int state
  • Constructor Details

    • PrivateConstructorInstantiationDemo

      private PrivateConstructorInstantiationDemo()
    • PrivateConstructorInstantiationDemo

      private PrivateConstructorInstantiationDemo(int state)
  • Method Details

    • getState

      public int getState()