Explain the importance of a constructor in object-oriented programming
Answers
Answered by
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