Computer Science, asked by ayushtony, 1 year ago

Difference between constructor and function

Answers

Answered by akshay180
0
constructor is 1 who builds building
Answered by AnubhavRana
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