public abstract class EnemyShip{
protected string ModifyName{
protected int ModifyDamage{
Console.WriteLine("{0} is on the screen", ModifyName);
Console.WriteLine("{0} is following",ModifyName);
Console.WriteLine("{0} is attacking with damage {1}",ModifyName,ModifyDamage);
public class UFOShip:EnemyShip{
public class RocketShip:EnemyShip{
public class EnemyFactory:EnemyShip{
public static EnemyShip Create(int type){
public static void Main()
EnemyShip enemy = EnemyFactory.Create(2);
public static void dosomestuff(EnemyShip m){