What is the distinction between Apex's public and global classes?
Photo by Marek Piwnicki on Unsplash
In Apex, the distinction between the public and global classes is as follows:
Classification 1. Any Apex in the application can utilise the method specified in a public class. Any Apex with access to a global class can utilise the method defined in the class. for more info visit: Salesforce Classes In Pune
When you define the method as public, you do not need to declare the glass that contains it as public. When you designate a method as global, you must also declare the class that it is part of as global. Best IT Training Provider