interface a
{
Method1()
Method2()
}
class b: a
{
override Method1()
override Method2()
}
what will happen & why?
Answer Posted / vijayakumar
It will throw an error bcz
1.override Key word not use with interface
correct ans :
class b : a
{
public void Method1()
{
}
public void Method2()
{
}
}
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What are types in c#?
What is Covariance and contravariance in C#?
What is yield c#?
What is the file extension for c#?
What is the benefit of using interface in c#?
What is an enumerator in c#?
What is the use of protected in c#?
Explain how many types of exception handlers are there in .net?
What is the use of base keyword? Tell me a practical example for base keyword’s usage?
What are the types of comments in c#?
Why we use methods in c#?
What are the 3 types of comments in c#?
What is the use of ienumerable in c#?
Define an array?
Explain about Oops concept