private static void DoStuffEnemy(EnemyShip enemyShip) { if (enemyShip == null) { return; } enemyShip.DisplayEnemyShip(); enemyShip.FollowHeroShip(); enemyShip.EnemyShipShoots(); }
// Executes methods of the super class public static void DoStuffEnemy(EnemyShip anEnemyShip) { anEnemyShip.DisplayEnemyShip(); anEnemyShip.FollowHeroShip(); anEnemyShip.EnemyShipShoots(); }