protected void Page_Load(object sender, EventArgs e) { Response.Write("This is ODD<br>"); IFive obj1 = new ODDEVEN(); obj1.ONE(); obj1.THREE(); obj1.FIVE(); Response.Write("<br>This is EVEN"); IEVEN obj2 = new ODDEVEN(); obj2.TWO(); obj2.FOUR(); }
static void Main(string[] args) { Console.WriteLine("This is ODD"); IFive obj1 = new ODDEVEN(); obj1.ONE(); obj1.THREE(); obj1.FIVE(); Console.WriteLine("\n\nThis is EVEN"); IEVEN obj2 = new ODDEVEN(); obj2.TWO(); obj2.FOUR(); Console.ReadLine(); }