Classes do not use scope keywords, but you can prevent people from instantiating the class by making
the __construct() method and the __clone() methods private or protected. The __construct()
method is used to create the object so if it is not accessible, the object cannot be created. You don’t need
a __construct() method in your class to create an object, but if there is a __construct() method
then it needs to be available. So if you don’t need a __construct() method but don’t want people to
the __construct() method and the __clone() methods private or protected. The __construct()
method is used to create the object so if it is not accessible, the object cannot be created. You don’t need
a __construct() method in your class to create an object, but if there is a __construct() method
then it needs to be available. So if you don’t need a __construct() method but don’t want people to