/// Interface demo
Interface Iinterface1
{
// Function prototype
public void ShowDetails();
}
// First class using the interface
Class MyClass1 : Iinterface1
{
public void ShowDetails()
{
// Function body comes here
Response.Write("I'm in MyClass");
}
}
// Second class using the interface
Class MyClass2 : Iinterface1
{
public void ShowDetails()
{
// Function body comes here
Response.Write("I'm in MyClass2");
Response.Write("So, what?");
}
}