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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top