static void Main(string[] args) { //double[] a = { 2, 6, 20 }; //double[] b = { 20, 8, 13 }; //double[] c = { 5, 12, 16 }; double[] a = { 2, 20, 5 }; double[] b = { 6, 8, 12 }; double[] c = { 20, 13, 16 }; double[] d = { 10, 8, 20 }; double[] e = { 12, 8, 2 }; Mehsul m = new Mehsul(a, 80); Mehsul k = new Mehsul(b, 80); Mehsul j = new Mehsul(c, 80); Mehsul z = new Mehsul(d, 80); Mehsul t = new Mehsul(e, 80); Filial first = new Filial(m); Filial second = new Filial(k); Filial third = new Filial(j); Filial fourth = new Filial(z); Filial fifth = new Filial(t); Firma f = new Firma(first, second, third, fourth, fifth); }
public Filial(Mehsul m) { this.m = m; a = m.a; k = m.k; // mehsullar.Add(m); }