public class Super
{
}
public class a : Super
{
}
public class b : Super
{
}
public class c : Super
{
}
Super objSuper;
a objA = new a();
b objB = new b();
c objC = new c();
objSuper = objB;
if (objSuper is a)
{
Response.Write("Of A");
}
else if (objSuper is b)
{
Response.Write("Of B");
}
else
{
Response.Write("Of C");
}
================OutPut===================
Of B
Saturday, October 3, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment