Q. Which of the followings are true about constructors?

1. A class can have more than one constructor.
2. They can be inherited.
3. Their address can be referred.
4. Constructors cannot be declared in protected section of the class.
5. Constructors cannot return values.

  • (A) Only 1,2,4
  • (B) 1,2,4,5
  • (C) 1,3,5
  • (D) 1,4,5
πŸ’¬ Discuss
βœ… Correct Answer: (D) 1,4,5

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
319
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
84%
Success Rate