From code above we can see that a singleton has a static variable to keep it sole instance. We need to set the class constructor into private access modifier.
確定! 回上一頁