223k views
2 votes
What is the role of the constructor for an object?

User Shender
by
5.2k points

1 Answer

5 votes

Answer:

A constructor is responsible for preparing the object for action.

User Wek
by
4.9k points