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

What's the .net collection class that allows an element to be accessed using a unique key?

580


What's wrong with a line like this? Datetime.parse(mystring);

574


What are two different types of remote object creation mode in .net?

558


What is the difference between a class and an object, and how do these terms relate to each other?

599


Please explain what is the difference between constants and read-only variables?

590






What is difference between static page and dynamic page?

548


What is deferred execution vs. Immediate execution in linq?

582


Which namespace does it belong to by default?

581


SAP Business One(this is intigrated tool of .net)

1792


What is a .net class?

635


Write the .net syntax for 'for loop'?

581


How to create properties and methods using controls?

596


What is Polymorphism? How does VB.NET/C# achieve polymorphism?

2488


How many types of transactions are there in com + .net ?

580


What does cli do?

528