UNPKG

30-seconds-of-code

Version:
5 lines (3 loc) 223 B
### Constructor In class-based object-oriented programming, a constructor is a special type of function called to instantiate an object. Constructors often accept arguments that are commonly used to set member properties.