diff --git a/src/main/java/proto/BasePull.java b/src/main/java/proto/BasePull.java index 692b0b5..9381b91 100644 --- a/src/main/java/proto/BasePull.java +++ b/src/main/java/proto/BasePull.java @@ -1,27 +1,28 @@ package proto; public class BasePull { - class Customer{ + class Customer { Company off; - String add; + public Company getOff() { return off; } + public void setOff(Company off) { this.off = off; update(); } + public String getAdd() { - return add; + return off.getAdd(); } - public void setAdd(String add) { - this.add = add; - } + private void update() { - add = off.getAdd(); + } } - class Company{ + + class Company { String add; public String getAdd() {