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

Class Transaction

Transaction.java:3–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package BankingSystem;
2import java.time.LocalDateTime;
3public class Transaction {
4 private String type;
5 private double amount;
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;
17}
18
19}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected