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

Explain about the features and elements present in Visual studio.NET IDE?

626


Tell us what is heap and what is stack?

567


hai, about trading domain and need simple project on trading system. please help me...

1576


Explain the difference between garbage collections in .net 4.0 and earlier versions?

543


What is the difference between vb.net and vc#.net?

552






What is the procedure to add assemly to gac to make it shared one?

519


What exactly is being serialized when you perform serialization in .net?

539


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

570


Explain the difference between .net 2000 and .net 2005(features)? Which one is better?

566


Explain dataset.acceptchanges and dataadapter.update methods in .net?

561


What is a garbage collector?

624


What is the difference between .net 2000 and .net 2005(features)? Which one is better?

523


Explain difference between panel and groupbox classes using .net?

548


What does jit do?

571


Explain re-clarification of object based in .net?

576