static void Main() { ILion lion = CreateLion(); lion.Roar(); lion.Attack(); ILion2 lion2 = (ILion2)lion; lion2.Hunt(); }
public void Hunt(ILion lion) { lion.Roar(); }