Link to home
Start Free TrialLog in
Avatar of chilled2003
chilled2003

asked on

public vs private classes

I need a "for dummies" anwser of the difference between public and private classes.
Avatar of chilled2003
chilled2003

ASKER

ok figured this one out, what does the "static" mean in public static void Main() ?
ASKER CERTIFIED SOLUTION
Avatar of marcin1
marcin1

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
in simple,
A public class can be instantiated by any object in the application
and
A Private Class can be created only by objects of its own type or by types that it nested off.

dzelters.
Thanks :)

static on a function means that you don't need an object to invoke the function. It also implies that inside the function, there is no access to "this", although static members are available.

-Kelly