The “get” and “set” methods in Java are a part of encapsulation and are used to return or set the value of the private variable, respectively.
確定! 回上一頁