What is an Interface? Have you ever developed an Interface.
Answers were Sorted based on User's Feedback
Answer / kinjal
interface is reference type and contain only abstract member.
interface member can be Methods ,events, properties and indexer. but interface contain only declaration of members.
interface can't contain constant ,data field, constructor ,static members, destructors.
| Is This Answer Correct ? | 8 Yes | 1 No |
Answer / arash
sorry i meant "its like multiple inheritance in C++ "
interface is an oops concept (inheritance)
its like multiple inheritance in C++
but we use Interface in .Net
Public Interface AnInterface //interface
Function WhoAmI() As String
End Interface
Public Class AClass
Implements AnInterface
Public Function WhoAmI() As String Implements AnInterface.WhoAmI
Return "AClass"
End Function
End Class
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / suren
It’s an abstract class with public abstract methods all of
which must be implemented in the inherited classes.
Explain him if you have ever developed an interface.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / arash
interface is a oops concept (inheritance)
its like multiple inheritance in C#.net with inheritance Key but we use Interface in VB.Net
Public Interface AnInterface //interface
Function WhoAmI() As String
End Interface
Public Class AClass
Implements AnInterface
Public Function WhoAmI() As String Implements AnInterface.WhoAmI
Return "AClass"
End Function
End Class
| Is This Answer Correct ? | 0 Yes | 3 No |
How Garbage Collector (GC) Works?
Using com component in .net?
What?s typical about a Windows process in regards to memory allocation?
Difference between abstract class and interface in .net?
What is a design pattern and what is it for?
Please explain what are an inheritance, polymorphism, and encapsulation?
which method do you use to redirect the user to another page without performing a round trip to the client? How?
What is the difference between Dataset and DataReader? Can u breif me ADO.net classes and architecture
State the differences between the dispose() and finalize().
How to create multiple inheritance in c#, with example?
Explain what is the difference between response.redirect & server.transfer?
What is the difference between a class and an object, and how do these terms relate to each other?