Private Class
-
Even I dont know. :laugh:
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
-
Sheena wrote:
what are private classes in .net
They would initially seem to be a bit pointless, but they have their uses. They are classes that can be nested within another class. They are private to the class they are nested within and cannot be used externally because they are private. e.g.
public class OuterClass
{
private class InnerClass
{
}
}In the above example, nothing outside of the OuterClass can see the InnerClass.
Upcoming FREE developer events: * Developer Day Scotland My website
-
Sheena wrote:
what are private classes in .net
They would initially seem to be a bit pointless, but they have their uses. They are classes that can be nested within another class. They are private to the class they are nested within and cannot be used externally because they are private. e.g.
public class OuterClass
{
private class InnerClass
{
}
}In the above example, nothing outside of the OuterClass can see the InnerClass.
Upcoming FREE developer events: * Developer Day Scotland My website
Thanks !
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder