Help Center

Local Navigation

Setting appropriate access

When you create code libraries, you can significantly reduce the size of your compiled code by using the appropriate access modifiers for fields and methods. Declare fields as private whenever possible. In addition to being good coding practice, this allows the compiler to optimize the .cod file. When possible, use the default (package) access instead of public access (that is, omit the public and protected keywords).


Was this information helpful? Send us your comments.