HighTechTalks DotNet Forums  

Implementing Interface

Dotnet FAQs microsoft.public.dotnet.faqs


Discuss Implementing Interface in the Dotnet FAQs forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Gomathi
 
Posts: n/a

Default Implementing Interface - 11-17-2005 , 08:25 AM






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



Reply With Quote
  #2  
Old   
S.M. Altaf [MVP]
 
Posts: n/a

Default Re: Implementing Interface - 11-17-2005 , 10:09 AM







Hi Gomathi,

When it comes to interfaces, it doesn't matter if you're using ASP.NET or
Winforms. It's about the language.

You can implement an interface by doing something like this:

interface IF111

{

void MyFunction();

}

class Test1:IF111 //<---------------------------looky here

{

void IF111.MyFunction()

{

Console.WriteLine("MyFunction implemented.");

}

}


You can check out a more detailed example here:
http://www.codersource.net/csharp_tu...interface.html

HTH
Altaf

--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com

"Gomathi" <gomathi (AT) celtycs-consulting (DOT) com> wrote

Quote:
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




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.