public void display()
{
Console.WriteLine("\nFunction Implements by test class");
}
}
class Program
{
static void Main(string[] args)
{
//mathdemo ob = new mathdemo();
//object or instance of an interface can not be created it can used by inheritance
// it is mandatory to child class for implements interface function
test ob = new test();
Console.WriteLine("\nArea is {0}", ob.area(10, 20));
ob.showtest();
ob.display();
}
}Next Topic