Ask Question

When an object is defined without an argument list for its constructor, the compiler automatically calls the object's default constructor?

+1
Answers (1)
  1. 27 May, 07:10
    0
    Yes, but your wording is a little off. When an object is created without an argument list / parameters, the default constructor is called. The one caveat is if the default constructor has been deleted. Then a compilation error will be thrown. I'll also add that it depends on the language and compiler. So if you want more details, you need to tell us what language you are referring too.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “When an object is defined without an argument list for its constructor, the compiler automatically calls the object's default constructor? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers