interface a
{
Method1()
Method2()
}
class b: a
{
override Method1()
override Method2()
}
what will happen & why?
Answer Posted / arun
A compile time error will be thrown as there exist no
methods to override. The methods in the interface are just a
contract.
To override any method, it should be defined as virtual.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is tryparse?
What are the types of parameters in c#?
If you donot specify an access modifier for a method, what is the default access modifier?
How many destructors can a class have?
What is the difference between const and static read-only?
What is meant by console programming?
Where’s global assembly cache located on the system?
explain Garbage collector’s functionality on unmanaged code
Why do we use namespace in c#?
What is stringwriter c#?
Explain how do you convert a value-type to a reference-type?
What is Implementation inheritance
What is the resgen.exe tool used for?
Explain the advantage of using system.text.stringbuilder over system.string?
Why we use get set in c#?