メンバ変数
| 日本語 | 一員変数 |
| 英語 | member variable |
| ふりがな | めんばへんすう |
| フリガナ | メンバヘンスウ |
フィールドのこと。
フィールドのことを「メンバ変数」と呼ぶ場合がある。
また、メソッドのことを「メンバ関数」と呼ぶ場合がある。
一応、Javaではあまり使用されない用語。
元々はC++言語の用語である。
フィールドのことを「メンバ変数」と呼ぶ場合がある。
また、メソッドのことを「メンバ関数」と呼ぶ場合がある。
一応、Javaではあまり使用されない用語。
元々はC++言語の用語である。
参考サイト
- (参考サイトはありません)
// Sample.java
public class Sample
{
/** メンバ変数=フィールド。 */
private int data = 0;
/**
* メンバ関数=メソッド。
*/
public static void main( String[] args )
{
}
}
public class Sample
{
/** メンバ変数=フィールド。 */
private int data = 0;
/**
* メンバ関数=メソッド。
*/
public static void main( String[] args )
{
}
}
// Sample.java
public class Sample
{
/** メンバ変数=フィールド。 */
private int data = 0;
/**
* メンバ関数=メソッド。
*/
public static void main( String[] args )
{
}
}




