C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Articles » .NET Framework »

How to implement multiple interface in VB.NET


Posted Date: 10 Jul 2004    Resource Type: Articles    Category: .NET Framework
Author: deepakbaradMember Level: Bronze    
Rating: 1 out of 5Points: 10



**multiple interface
****************************

Interface IGeneral
Function GeneralTest() As String
End Interface

Interface ISpecial
Function SpecialTest() As String
End Interface

Public Class Tests
Implements IGeneral
Implements ISpecial

Public Function MyGeneralTest() As String _
Implements IGeneral.GeneralTest

''secondary interface

End Function

Public Function MySpecialTest() As String _
Implements ISpecial.SpecialTest

''secondary interface

End Function

Public Function MyPrimaryTest() As String
'''primary interface
End Function

private function MyPrivateTest() as string
'''not a part of primary interface,bcoz access specifier is private.
end function
End Class

Public Class ConductTest
Dim objGenTest As IGeneral = New Tests()
Dim objSplTest As ISpecial = New Tests()
Dim objTests As New Tests()

Private Sub Start()

objGenTest.GeneralTest()

objSplTest.SpecialTest()

objTests.MyGeneralTest()
objTests.GeneralTest()
objTests.SpecialTest()
End Sub
End Class




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: How to encrypt and decrypt a string - a simple encryption/decryption
Previous Resource: How to filter data from a dataset or datatable
Return to Discussion Resource Index
Post New Resource
Category: .NET Framework


Post resources and earn money!
 
Related Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use