+ 5
Did constructor have return type?
5 ответов
+ 4
During specifying any constructor I mean when we use or call a constructor we don't specify any return type but actually every constructor implicitly returns object of the class or the index of the object as in java. So according to me constructor must have a return type which we don't know I mean it implicitly returns something without any specification of return type.(as in C main indicates void main)
+ 2
ty
+ 1
in c ++ constructor does not have a return type because constructor is not associated with any return type.
0
in C# the constructor have no return type
0
No