What is an Interface? Have you ever developed an Interface.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differences between dll and exe?

600


What is the base class of Button control in .NET?

613


Explain Different kinds of methods?

1633


Is .net core installed?

526


I was working for software company frm 2005 to 2009. I left job due to recession.I was jobless till dec 09 then i got job in bpo and i am not knowing what to do as my professional experience is with software.give me any suggestion.

1503






Should I implement finalize on my class? Should I implement idisposable?

542


What is a windows process in .net?

579


What do you mean by Code Access Security in .NET?

637


What's the use of system.diagnostics.process class in .net?

581


Please explain what is a delegate?

691


What is Entity Relationship Model in .NET?

594


Is there any attempt system for microsoft technology papers?

1299


What is the transport protocol you use to call a seb service soap?

533


What does cli do?

520


How to load the contents of an xml file into an xmldocument object?

600