πŸ“Š DotNet Technology
Q. Which of the following statements is correct about constructors?
  • (A) If we provide a one-argument constructor then the compiler still provides a zero-argument constructor.
  • (B) Static constructors can use optional arguments.
  • (C) Overloaded constructors cannot use optional arguments.
  • (D) If we do not provide a constructor, then the compiler provides a zeroargument constructor.
πŸ’¬ Discuss
βœ… Correct Answer: (D) If we do not provide a constructor, then the compiler provides a zeroargument constructor.

You must be Logged in to update hint/solution

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
964
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
97%
Success Rate