public static DateProvider getInstance() { if (instance == null) { instance = new DateProvider(); } return(instance); }
public static DateProvider getInstance() { if (instance == null) instance = new DateProvider(); return instance; }
public Transaction(double amount) { this.amount = amount; this.transactionDate = DateProvider.getInstance().Now(); }
public Transaction(double amount) { Amount = amount; TransactionDate = DateProvider.now(); }