static void Main(string[] args) { mango t1 = new mango("fajli", 20); t1.showData(); t1.getAmount(); }
static void Main(string[] args) { fruit[] allfruits = new fruit[2]; allfruits[0] = new mango(); allfruits[1] = new banana(); for (int i = 0; i < 2; i++) { allfruits[i].collect(); } }