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();
 }
Example #4
0
 public Transaction(double amount)
 {
     Amount          = amount;
     TransactionDate = DateProvider.now();
 }