java-tutorials/patterns/dipmodular/com.baeldung.dip.entities/com/baeldung/dip/entities/Customer.java

20 lines
323 B
Java

package com.baeldung.dip.entities;
public class Customer {
private final String name;
public Customer(String name) {
this.name = name;
}
public String getName() {
return name;
}
@Override
public String toString() {
return "Customer{" + "name=" + name + '}';
}
}