Ans: Interface is the contract between programmer and technology. It Means that whatever the abstract method that a interface contain, you must override all (this is the contract).
Example:
Interface Contract
{
void ContractHere();
}
class MakeContract : Contract
{
void ContractHere()
{
Console.WriteLine("Contract Override Successfully");
}
}
Example:
Interface Contract
{
void ContractHere();
}
class MakeContract : Contract
{
void ContractHere()
{
Console.WriteLine("Contract Override Successfully");
}
}
No comments:
Post a Comment