DEV Community

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

Collapse
 
sp96296 profile image
Evan H

A constructor is a method of a class that allows new objects to be made.