Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 881 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 881 Bytes

StrategyPattern

Android Project using the Strategy and Singleton Pattern in a payment flow example.

This project is build using the Strategy and Singleton Pattern. We created a payment process with 3 payments methods:

  • Card
  • Cash
  • Coupon

For each method, the Strategy Pattern executes a task to calculate the final price of the products.

The Singleton pattern management the unique price of the ficticious product to pay.

Created by

Osmar I. Cancino Díaz - [email protected]

Follow me on Twitter Follow me on Google+