Public Members can be accessed anywhere using the "." notation.
Private Members can only be accessed within a constructor and public method.
Public methods and variables are declared using the "this" keyword like "this.variableName".
A Public method is accessed using a constructor; this technique is usually used to initialize public instance variables.
var objPublicPrivateClassg = new PublicPrivateClass();
Code