Jersey-Electricity-plc / jwissues

Hold issues/questions/improvements for the Jenworks conversion
0 stars 0 forks source link

DEV - Object/Function Visibility #65

Open tscottjendev opened 1 year ago

tscottjendev commented 1 year ago

We need to decide on a default policy for function and object visibility (see Access Modifiers).

Should everything be internal by default? Pros/Cons Should everything be public by default? Pros/Cons What about "related apps" should they allowed access to the internals? Test apps will likely have to have access to internals. What about protected variables? What guidelines should we have for creating them?

Are there exceptions to the rules?