目的是將敏感的資料保護起來,避免其他程式存取。 為了將敏感的資料隱藏,我們可以將class的variables/attributes設定為private,同時加上public的get method 和set method ...
確定! 回上一頁