Access modifier specify the accessibility of a variable or and object. That means who can access the object and how can it be accessed.which controls whether they can be used from other code in your assembly or other assemblies. You can use the following access modifiers to specify the accessibility of a type or member when you declare it:
public :
The type or member can be accessed by any other code in the same assembly or another assembly that references it.
private:
The type or member can be accessed only by code in the same class or struct.