explain the characteristics of a constructor
Answers
Answered by
2
A class constructor if defined is called whenever a program creates an object of that class. The constructor functions have some special characteristics which are as follows; ... They are invoked directly when an object is created. They don't have return type, not even void and hence can't return any values.
shariq007:
Bhai 2 aur characteristices batao plz
Answered by
1
✌️A class constructor if defined is called whenever a program creates an object of that class.
✌️ The constructorfunctions have some specialcharacteristics which are as follows;
✌️They are invoked directly when an object is created.
✌️They don't have return type, not even void and hence can't return any values.
✌️ The constructorfunctions have some specialcharacteristics which are as follows;
✌️They are invoked directly when an object is created.
✌️They don't have return type, not even void and hence can't return any values.
Similar questions