ForNext
Only Do What Only You Can Do
129. access control
Hyperpolyglot C++ Style Languages: C++, Objective C, Java, C# より (2012.05.08)
VBScript
JScript
Perl
PHP
Python
Ruby
PowerShell
Scala
F#
C
C++
access keywords define regions: class Foo { int privateInt1; int privateInt2; public: int publicInt1; int publicInt2; protected: int protectedInt1; int protectedInt2; private: int privateInt3; int privateInt4; };
C++Builder
VC++
C#
access keywords available for methods and members: public class Foo { private int privateInt1; int privateInt2; protected int protectedInt; public int publicInt; }
Java
access keywords required for methods and members: public class Foo { private int privateInt; protected int protectedInt; public int publicInt; }
Objective-C
access keywords define regions: @interface Foo : NSObject { int protectedInt1; int protectedInt2; @public int publicInt1; int publicInt2; @protected int protectedInt3; int protectedInt4; @private int privateInt1; int privateInt2; } @end