Answer Posted / srinivasa reddy
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace InterfaceExample
{
interface IA
{
void MethodA();
}
class Program : IA
{
static void Main(string[] args)
{
IA InterfaceA = new Program();
InterfaceA.MethodA();
Console.ReadKey();
}
void IA.MethodA()
{
Console.WriteLine("This is a test");
}
}
}
Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
Is system a class in c#?
How do you specify a custom attribute for the entire assembly (rather than for a class)?
What do you know about device context?
What are the basic string operations? Explain.
Do loops in c#?
Is there an equivalent to the instanceof operator in visual j++?
What's the difference between class and object?
Is clr a compiler?
What are satellite assemblies?
Why do we override in c#?
What is the difference between null and string empty in c#?
what is a destructor?
What is clr namespace?
Is c# lazy thread safe?
What is inheritance in csharp?