Start learning →

Match singleton cues: 1. Priv: p. Hide ctor 2. One: q. Shared inst 3. Get: r. Factory fun

A1-p, 2-q, 3-r
B1-p, 2-r, 3-q
C1-q, 2-p, 3-r
D1-r, 2-p, 3-q
Answer & Solution
Correct answer: A. 1-p, 2-q, 3-r
Singleton patterns declare private constructors to prevent outside creation, maintain a static instance, and expose factory methods.
Practise this question with Quill — ICSE Class 10 →

Keep practising User-Defined Methods and Constructors

Browse all User-Defined Methods and Constructors questions for ICSE Class 10, or explore more Computer Applications topics.

Start a User-Defined Methods and Constructors lesson →