PHP·98 questions

What is the Singleton pattern?

Answer
Only one instance of the class.
private __construct().
static getInstance().
Difficult to test.
Often considered an anti-pattern.
Was this answer helpful?

More questions in this topic

Related questions from other topics