public Line(CohoNumber A, CohoNumber B, CohoNumber C) { if (A.type() != B.type() || A.type() != C.type()) throw new GeomException("Data type used for A,B,C of Line are not the same"); this.A = A; this.B = B; this.C = C; this.type = A.type(); }