In the above program, a getter method getName() is created to access the property of an object. ... Note: To create a getter method, the get keyword is used. And ...
確定! 回上一頁