Hey guys. What is the reasoning behind using the colon (":") to call the primary constructor from a secondary constructor?
In other cases the ":" colon separates the type (parameter) or return type.
This seems to be a little bit inconsistent for me (as a Java dev). Any explanation for that?
3 replies
Well it does, the (return) type of this constructor is a subtype of the parent constructor's (return) type.