public SoPhuc Hieu(SoPhuc t2) { SoPhuc tmp = new SoPhuc(); tmp.thuc = this.thuc - t2.thuc; tmp.ao = this.ao - t2.ao; return(tmp); }
public static SoPhuc operator +(SoPhuc t1, SoPhuc t2) { SoPhuc tmp = new SoPhuc(); tmp.thuc = t1.thuc + t2.thuc; tmp.ao = t1.ao + t2.ao; return(tmp); }
public SoPhuc Tong(SoPhuc t2) { SoPhuc tmp = new SoPhuc(); tmp.thuc = this.thuc + t2.thuc; tmp.ao = this.ao + t2.ao; return(tmp); }
public SoPhuc(SoPhuc t2) { this.thuc = t2.thuc; this.ao = t2.ao; }