Difference between constructor and function
Answers
Answered by
0
constructor is 1 who builds building
Answered by
3
Constructor doesn't have a return type, the name of constructor should be the same as the class name and functions can have return type and the name is user defined. constructor initiate the object and function is a method work for initiated object.
Similar questions