Q. What would be the behaviour if one parameterized constructor is explicitly defined?

  • (A) Compilation error
  • (B) Compilation succeeds
  • (C) Runtime error
  • (D) Compilation succeeds but at the time of creating object using default constructor, it throws compilation error
πŸ’¬ Discuss
βœ… Correct Answer: (D) Compilation succeeds but at the time of creating object using default constructor, it throws compilation error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
119
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Sonali Mishra
Publisher
πŸ“ˆ
91%
Success Rate