diff --git a/src/A.java b/src/A.java new file mode 100644 index 0000000..736f3ae --- /dev/null +++ b/src/A.java @@ -0,0 +1,17 @@ +public class A { + private C c; + private double value; + public A(C c) { + this.c = c; + } + public void updateValue(double lat) { + this.value = lat; + } + public double getValue() { + return this.value; + } + public void updateGPS(double lat2, double long2) { + this.value = lat2; + this.c.updateLatitude(this.value); + } +} \ No newline at end of file