home > 比較編 > C, C++, Objective-C, Java, C# > invoke class method >

ForNext

Only Do What Only You Can Do

129. access control

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

D

VB

VB.NET

Delphi

Ada

PL/SQL

T-SQL

関数型

inserted by FC2 system