getterメソッドを用いるとフィールド値のみを取り出す事が出来ます。
アクセス修飾子 フィールドの型 getフィールド名(){
return this.フィールド名;
}
この時、フィールド名の最初の文字を大文字にする必要があります。
Go to list of users who liked
getterメソッドを用いるとフィールド値のみを取り出す事が出来ます。
アクセス修飾子 フィールドの型 getフィールド名(){
return this.フィールド名;
}
この時、フィールド名の最初の文字を大文字にする必要があります。
Register as a new user and use Qiita more conveniently
Go to list of users who liked