Thanks Jon Skeet...
I learn the explict and implicit interface declarations. They are
interesting topics...
I think default implementation of VB.NET is explicit interface
implementation.
How can we implement an interface member using "implicit interface
implementation" in VB.NET??
Ragards
prakash
> I think default implementation of VB.NET is explicit interface
> implementation.
Not really - it depends on what access modifier you provide.
> How can we implement an interface member using "implicit interface
> implementation" in VB.NET??
Look at this:
Imports System
Public Class ShortTest
Implements IDisposable
Public Overridable Sub Dispose Implements IDisposable.Dispose
Console.WriteLine ("Hello")
End Sub
Shared Sub Main
Dim x as New ShortTest()
x.Dispose()
End Sub
End Class
As far as I can tell, that's equivalent to:
using System;
public class ShortTest : IDisposable
{
public void Dispose()
{
Console.WriteLine ("Hello");
}
static void Main()
{
new ShortTest().Dispose();
}
}

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
prakash - 29 Jul 2005 07:37 GMT
Thank u very much Jon Skeet
Two interfaces with same member I am used the following syntax.
-------------------------------------------------------------------------------------
Public Interface IHello
Sub SayHello()
End Interface
Public Interface IHello1
Sub SayHello()
End Interface
Public Class Hello
Implements IHello, IHello1
Public Sub SayHello() Implements IHello.SayHello, IHello1.SayHello
MessageBox.Show("Say Hello On the Hello Class")
End Sub
End Class
-------------------------------------------------------------------------------------
regards
prakash