Interview Question
Qus: What are the types of constructors?
Constructors can be divided into 5 types -
1. Default Constructor
2. Parameterized Constructor
3. Copy Constructor
4. Static Constructor
5. Private Constructor
Answers (2)
• Parameterized Constructor
• Copy Constructor
• Static Constructor
• Private Constructor
1. Default Constructor
2. Parameterized Constructor
3. Copy Constructor
4. Static Constructor
5. Private Constructor