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 is extension method in c sharp?
Does unity use c++ or c#?
How does return work in c#?
Can arraylist store different data types in c#?
Why do we use interface in c#?
What is .cs file in c#?
What is the benefit of delegate in c#?
How long does a loop recorder procedure take?
Can a struct have a default constructor (a constructor without parameters) or a destructor in c#?
Is static class thread safe in c#?
Explain the difference between a sub and a function in c#.
What are the Types of JIT and what is econo-JIT
Why References are stored on heap and variables on stack?
Why is it called c sharp?
Is array passed by reference in c#?