You need to sign in to do that
Don't have an account?
Access modifier
Hi All
Need to know the diff. between Private & Global access modifier. What you mean by variable is only visible locally (for Private) & variable is visible to Apex scripts (for global). Private, i understood.
• private—the variable is only visible locally. This setting is the default if no access modifier is specified. You can have a class nested within a class. By default, these nested classes are private, meaning they are only visible within the outer class.
• public—the variable is visible within your application.
• global—the variable is visible to all Apex scripts.
Regards,
Pri...
You pretty much answered your own question. =)
I'll take a more general stab...
(Namespaces = most commonly used when you install an AppExchange package into your org. It seperates out "your" code from the application's code)
A small additional points, which may be different from the actual answer but would like to share. Once you have used Global in any method and packaged the class in managed package you will then not be able to change the definition of method.
Thanks
Ankit Arora
Blog | Facebook | Blog Page