# インスタンス変数. 定義

# PHP

class Class01 {
    public $member01 = 3;
}

# Python

class Class01:
    def __init__(self, member01):
        self.member01 = member01

# Ruby

class Class01
    @member01 = 3
end

# TypeScript

class Class01 {
    public member01: number = 3;
}

[ 📩 ご意見 ]