OOP practices generally get and set variables (properties) using methods. That is the intent of getter and setter in JS objects and classes.
確定! 回上一頁