Nice TWiki > Dev > VisibilityModifiers (r1.13 vs. r1.14) TWiki webs:
Dev | Doc | Main | TWiki | Sandbox
Dev . { Changes | Index | Search | Go }
 <<O>>  Difference Topic VisibilityModifiers (r1.14 - 21 Feb 2004 - DanielBonniot)
Changed:
<
<

Similarly for classes, visibility should not restrict implementing a method for that class. I can see too usages for non-public classes. One is to make the constructor restricted, which means you cannot instanciate them outside the scope. The other is that you cannot use them in types. The first one is surely needed (singleton pattern). I'm not sure about the second. A possibility is that both would be restricted.

>
>

Similarly for classes, visibility should not restrict implementing a method for that class. I can see two usages for non-public classes. One is to make the constructor restricted, which means you cannot instanciate them outside the scope. The other is that you cannot use them in types. The first one is surely needed (singleton pattern). I'm not sure about the second. A possibility is that both would be restricted.


Topic VisibilityModifiers . { View | Diffs | r1.15 | > | r1.14 | > | r1.13 | More }
Revision r1.13 - 04 Feb 2004 - 03:02 GMT - BrianSmith
Revision r1.14 - 21 Feb 2004 - 23:45 GMT - DanielBonniot
Copyright © 1999-2003 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback.