πŸ“Š C++
Q. Which of the following statements is correct about constructors in C++?
  • (A) A constructor has no return type.
  • (B) A constructor is called when an object is created.
  • (C) A constructor can have parameters.
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the above

Explanation: In C++, constructors have no return type, are called when an object is created, and can have parameters.

Explanation by: Rakesh Kumar
In C++, constructors have no return type, are called when an object is created, and can have parameters.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
182
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rakesh Kumar
Publisher
πŸ“ˆ
84%
Success Rate