What differences between constructor and function signature.
Answers
Answered by
3
Constructor gets invoked as the objet of class is created...But we have to call the function with the help of object
Answered by
1
Constructor signature does not consists of any return type not even void.
Function signature consists of the return data type if d func returns a value and void if it does not.
Function signature consists of the return data type if d func returns a value and void if it does not.
Similar questions