By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,749 Members | 1,627 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,749 IT Pros & Developers. It's quick & easy.

Implementing Interface

P: n/a
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
Nov 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

Gomathi schrieb:
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


Nov 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.