This project is a demonstration of How do you design a Vending Machine in Java? which is one of the Java interview questions mostly asked at Senior level Java developer Interviews.
In this example we will be using Factory method pattern for creating different types of Vending Machine.
Read more here: https://refactoring.guru/design-patterns/factory-method
- Accepts coins of 1,5,10,25 Cents i.e. penny, nickel, dime, and quarter.
- Allow user to select products Coke(25), Pepsi(30), Soda(10)
- Allow user to take refund by cancelling the request.
- Return the selected product and remaining change if any
- Allow reset operation for vending machine supplier.
- Java
- Spring Boot
- Gradle
Nensi Skenderi - nensiskenderi20@gmail.com