Wednesday, September 21, 2005

Interfaces in C#

I wrote this small template in C# for using interfaces

interface Itest
{
void show();
}

class cl:Itest
{
void show()
{

}

}

Throws an error saying that the show must be either public, static. Trying to find out what is the default scope of the members in C#.

Assemblies decide the scope of the class not namespace, sounds funny as to why anyone would do that as to decide the scope based on the assembly and not on the namespace.

Investigating further
-Kalyan

No comments: