Class PrivateConstructorInstantiationDemo


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

      • state

        private final int state
    • Constructor Detail

      • PrivateConstructorInstantiationDemo

        private PrivateConstructorInstantiationDemo()
      • PrivateConstructorInstantiationDemo

        private PrivateConstructorInstantiationDemo​(int state)
    • Method Detail

      • getState

        public int getState()