Files
spring-boot-rest/java-shallow-deep-copy/src/main/java/com/baeldung/data/BankAccount.java
2022-10-19 12:46:17 +02:00

39 lines
763 B
Java

package com.baeldung.data;
public class BankAccount implements Cloneable {
protected String name;
protected String surname;
protected Balance balance;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getSurname() {
return surname;
}
public void setSurname(String surname) {
this.surname = surname;
}
public Balance getBalance() {
return balance;
}
public void setBalance(Balance balance) {
this.balance = balance;
}
public BankAccount(String name, String surname, Balance balance) {
this.name = name;
this.surname = surname;
this.balance = balance;
}
}