Which of the following is true about the singleton design pattern?
Answers:• A singleton pattern means that a class will only have a single method.
• A singleton pattern means that a class can have only one instance object.
• A singleton pattern means that a class has only a single member variable.• Singletons cannot be implemented in PHP.
No comments:
Post a Comment