Which of the following statements is correct about constructors?
A) If we provide a one-argument constructor then the compiler still provides a zeroargument constructor.
B) Overloaded constructors have the same name as the class name
C) Overloaded constructors cannot use optional arguments.
D) If we do not provide a constructor, then the compiler provides a zero-argument constructor.
Correct Answer:
Verified
Q7: Which of the following can be used
Q8: Which of the following statements are correct
Q9: Which of the following is the correct
Q10: Which of the following statements are correct?1.
Q11: Which of the following is the correct
Q13: Which of the following statements is correct?
A)There
Q14: Which of the following can be facilitated
Q15: Which one of the following statements is
Q16: Which of the following statements are correct
Q17: Which of the following statements are correct?1.
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents