public TeloA(double a, double b, double c, double d, double h) { p1 = new Pravougaonik(a, d); p2 = new Pravougaonik(p1.GetO(), h); p3 = new Pravougaonik(c + b, d); t = new Trougao(a, b, c); }
private Pravougaonik m; // mozemo koristiti iz prethodnog zadatka (reference + using) public PP3Prizma(double a, double h) { this.b = new JSTrougao(a); this.m = new Pravougaonik(b.GetO(), h); }