October 10, 2016
In Apex programming language, there are three access modifiers: global, public and private. Global means it can be accessed inside and outside the current package. It is generally used when we build a library or web service. We can ignore it for now if you find it hard to understand. Public means it can be accessed inside the package, but pretty much everywhere in your current org. Private means it can only be accessed within the current class.