nakamin
12/16/2016, 6:27 PMCar
data class, it has a model and a color. Let's say that I want to be able to create this class by passing in a string that contains the data that I need. In order to create a new car I would need to parse this string to get the parameters that I need to pass to the car constructor. The problem is that a secondary constructor must refer to the primary constructor, which I can't do until I parse the string. How would I go about doing this?