public class MyOrder implements Order {
private final Items items;
public UserOrder(Items items) {
this.items = items;
}
@Override
public void showItem(String id) {
this.items.printItem(id);
}
}
The constructor's name and class name should be the same.
The constructor's name and class name should be the same.