| 1 | package BankingSystem; |
| 2 | import java.time.LocalDateTime; |
| 3 | public 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 |
| 15 | public String toString() { |
| 16 | return "[" + type + "] " + description + " | Date: " + date; |
| 17 | } |
| 18 | |
| 19 | } |
nothing calls this directly
no outgoing calls
no test coverage detected