What happens if a user forgets to define a constructor inside a class?
A. Error occurs
B. Segmentation fault
C. Objects are not created properly
D. Compiler provides a default constructor to avoid faults/errors
Answer:D
What happens if a user forgets to define a constructor inside a class?
A. Error occurs B. Segmentation fault C. Objects are not created properly D. Compiler provides a default constructor to avoid faults/errors