Advertisement
GSculerlor

DepositSlot.java

Oct 26th, 2017
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1. /**
  2.  * Represents the deposit slot of the ATM
  3.  */
  4. public class DepositSlot
  5. {
  6.     public DepositSlot() {
  7.  
  8.     }
  9.      // indicates whether envelope was received (always returns true,
  10.      // because this is only a software simulation of a real deposit slot)
  11.      public boolean isEnvelopeReceived()
  12.      {
  13.          return true; // deposit envelope was received
  14.      } // end method isEnvelopeReceived
  15. } // end class DepositSlot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement