Social Sciences, asked by Simin5915, 1 year ago

Explain the importance of a constructor in object-oriented programming

Answers

Answered by ABHISHEKN
0
When an objectis declared in a parameterizedconstructor, the initial values have to be passed as arguments to theconstructor function. ... Theconstructors can be called explicitly or implicitly. The method of calling theconstructor implicitly is also called the shorthand method.
Similar questions