I want to have a constructor that takes different ...
# getting-started
k
I want to have a constructor that takes different parameters, does some computations, and then calls the primary constructor with the result of that computation.
o
You can use
run
Or make a function instead of secondary constructor with the same name as class