Answers were Sorted based on User's Feedback
Answer / purushotham .tella
An Interface is a collection of semantically related
abstract members.Used To Support Multiple Inheritance
|Is This Answer Correct ?||6 Yes||0 No|
Answer / venkat2050
interfaces is in concept of late binding which happen at
runtime which a part in OOPs concept
the interface has indexes of abstact
it should in public
|Is This Answer Correct ?||4 Yes||2 No|
We will go for an interface when we want to implement a
1.My class x implements IDisposable interface to handle
cleaup operation. I have to implement that behaviour by
implementing the method interface method Dispose()
explicitly in my code.
2.My class y implements IComparable interface to implement
sorting between a list of objects created of type y. Here I
have to implement CompareTo method.
|Is This Answer Correct ?||3 Yes||1 No|
How do you inherit from a class in C#?
How to make a class not inheritable other than sealed?
Where is the output of TextWriterTraceListener redirected?
Can you override private virtual methods?
How?s method overriding different from overloading?
What?s an interface class?
What?s an abstract clas?
1)what is difference between char and varchar in sql server 2005 2) what is composite key and candidate key 3) what is temporary table and derived table 4) how to calculate difference between two dates
What?s the implicit name of the parameter that gets passed into the class? set method?
explain DIFFERENCE BETWEEN CLASS AND MODULE?
Can you prevent your class from being inherited and becoming a base class for some other classes?
In Main function another function is there and to that function if we pass string as parameter ,then that string value is passed by value or reference type?