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

Which namespace is used to support multithearding in .NET?

529


What is an anonymous method?

531


Explain the purpose of Remoting in .NET?

641


can any one tel me the complete Testing Procedure of any one simple PROJECT i mean either web/windows based application?

1477


Explain different types of html, web and server controls.

567






What are the types of assemblies in .net?

569


explain the states of a window service application?

556


How we can achieve Connection pooling in .Net?

648


What are data types in .NET?

661


What is lambda expressions in c#?

607


What is strong-typing versus weak-typing? Which is preferred?

551


What is connection pooling and how do you make your application use it?

567


Is .net a compiler?

550


What do you mean by Driver Script?

629


Tell me what is a “jagged array”?

595