MCPcopy Create free account
hub / github.com/Mahavishnu-06/BankingSystem / Transaction

Method Transaction

Transaction.java:8–13  ·  view source on GitHub ↗
(String type,double amount,String description)

Source from the content-addressed store, hash-verified

6 private String description;
7 private LocalDateTime date;
8 public Transaction(String type,double amount,String description){
9 this.type=type;
10 this.amount=amount;
11 this.description=description;
12 this.date=LocalDateTime.now();
13 }
14@Override
15public String toString() {
16 return "[" + type + "] " + description + " | Date: " + date;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected