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

20 lines
323 B
Java
Raw Normal View History

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 + '}';
}
}