Class Counter.Child

    • Constructor Detail

    • Method Detail

      • inc

        public void inc()
        Increment the counter by 1.
      • inc

        public void inc​(double amt)
        Increment the counter by the given amount.
        Throws:
        IllegalArgumentException - If amt is negative.
      • get

        public double get()
        Get the value of the counter.