public void print() { if (arr[0] is Aviation) { for (int i = 0; i < arr.Length; i++) { Aviation x = arr[i] as Aviation; x.GetName(); } } }