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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

575


What is operator overloading in .net?

626


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

542


How does linq work?

595


How do you define the lease of the object in .net?

558






What is meant by managed and unmanaged code?

602


What versions of .net are there?

619


What are Satellite Assemblies? How you will create this? How will you get the different language strings?

1576


Explain what are the deferred execution and the immediate execution in linq?

572


Explain about .net assemblies?

607


How to view a .NET assembly?

600


How will you load an assembly which is not referenced by current assembly?

548


How to produce an assembly?

562


Explain assemblies in .net?

610


Please explain what is the difference between encrypting a password and applying a hashing?

546