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
Explain About Postback
What is dependency in software?
How does foreach loop work in c#?
Explain the process of abstraction with an example?
Is everything an object c#?
What is the difference between abstract class and interface in c#?
Why do we need interfaces in c#?
How do you prevent a class from being inherited?
What is desktop application testing?
What is continue in c#?
I need code to connect ohter systems in the LAN and i want to display my website image over there and i want explain as a admin through phone. So i need code to access other system using C-Sharp. Any one please help me.Please give me the code. Advace thanks.
How do you inherit a class into other class in c#?
What is the usage of Enumeration in C# Programming and is it good to use or not ?
Is type nullable c#?
What is the importance of closing an ado.net application?