yvikt / ATM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test task:

  • Create script for ATM.
  • No visualization needed.
  • ATM’s functionality is your idea.
  • Please use OOP principles in your work.

Short description:

In this task I have created hypothetical ATM with generic behavior and available features in normal life. I have used abstract class GenericBankMachine which has common methods. Class ATM is inherited from GenericBankMachine and extends it. As you can see there are other types of Bank equipment like Terminal and POS. Also, I have decided to create something like API. Of course its not real API, just fake.

I have used int type for storing money in cents, because float doesn't give us required precision.

You can play with it by simple running main.php in cli. Be free to change any values in methods get_money and put_money ;-)

About


Languages

Language:PHP 100.0%