Friday, July 15, 2011

OOP fundamentals : Explicite Interface Implementation and Structures can contain class

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;public
{

{

Label1.Text = abcd1.ret().ToString();



Label1.Text +=
}
}
partial class _Default : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e)abcd abcd1 = new abcd(30);ZZZZ z = new ZZZZ();aa a = new ZZZZ();bb b = new ZZZZ();" " + z.meth() + " " + a.meth().ToString() + " " + b.meth();class ZZZZ : aa, bb{

{

}
public int meth()return 55;#region

{

}
aa Membersint aa.meth()return 66;#endregion
#region

{

}
bb Membersint bb.meth()return 77;#endregion}interface aa{

}
int meth();interface bb{

}
int meth();struct abcd{


{
x =
}
public aaaaaa x;public abcd(int z)new aaaaaa();public class aaaaaa{


{
a = 10;
}
}

{

}
}
public int a;public aaaaaa()public int ret()return x.a;

No comments:

Post a Comment

How to check local and global angular versions

 Use the command ng version (or ng v ) to find the version of Angular CLI in the current folder. Run it outside of the Angular project, to f...