DEV Community

loading...

Discussion on: Which among them is used to create an object?

Collapse
varaprasad_gudi profile image
Gudi Varaprasad

A constructor.

The values assigned by the constructor to the class variables is used in creating an object.

Forem Open with the Forem app