Answer to Question #180478 in C++ for RAMAKRISHNA

Question #180478

Default constructors are not mandatory to be written by user, explain the situation when default constructor is mandatory to be written by user.


1
Expert's answer
2021-04-11T23:17:30-0400

Answer: If user doesn't declare constructor in the class, compiler assumes that default constructor will be used, however if user declare parameterized constructor and want to use default constructor also, user must declare default constructor explicitly.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS