Write your answer in comment
1. A class
2. A function
3. A method
4. A constructor
We're a place where coders share, stay up-to-date and grow their careers.
Write your answer in comment
1. A class
2. A function
3. A method
4. A constructor
seanpgallivan -
shubham thakre -
Temani Afif -
Aurélie Vache -
Discussion (2)
A constructor is a method of a class that allows new objects to be made.
A constructor.
The values assigned by the constructor to the class variables is used in creating an object.