πŸ“Š C++
Q. Is it mandatory to call a constructor to create an object?
  • (A) Yes
  • (B) No
  • (C) NA
  • (D) NA
πŸ’¬ Discuss
βœ… Correct Answer: (A) Yes

Explanation: Yes, you need a constructor every time you create an object in C++. If you do not specify any value for the object, then a default constructor is called and automatically assigns a default value to class variables.

Explanation by: Dharmendra Sir
Yes, you need a constructor every time you create an object in C++. If you do not specify any value for the object, then a default constructor is called and automatically assigns a default value to class variables.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
187
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Dharmendra Sir
Publisher
πŸ“ˆ
94%
Success Rate