Implementing Interface

  • Thread starter Thread starter Gomathi
  • Start date Start date
G

Gomathi

hi all,

How to implement an interface in ASP.Net?.
Consider my interface name is IExample. Then whatz mean by
IExample ie = (IExample)obj1

Kindly let me know about this implementing interface in detail.

Thanks in advance.

Regards,
Gomathi
 
Hi Gomanthi,

let's use c# to solve this (but you could use any other .NET language)

Interface implementation

public myClass : IExample
{
....
....
}


The line IExample ie = (IExample)obj1 just casts obj1
to the interface "type"

Cheers,

Marcus
 
Back
Top