The difference is the scope of the object. A public object is accessible outside of the context in which it is declared - a private object is obviously the opposite, its not accessible outside the context in which it is declared. Basically if you want to access your function from another class call it public, if you only want it available within the class call it private.
Try reading an introductory book about .NET it will explain these concepts more completely and is easier to leverage than the help documentation if you are learning some general ideas.
I don't mean this to be anything but help. You can download the first five chapters of a good starting point for people who do not understand .Net from
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.