title: Calculating the field that is not presented in constructor
body: <p>Let's say I have a class with 3 fields: A, B, and C. I can create an instance of this class in two ways: pass all fields to the constructor, or pass only A and other properties will be calculated based on A.</p>
  
  <pre><code>class MyClass {
      val A: String
      val B: String
      val C: String
  
      constructor(A: String, B: String, C: String) {
          this.A = A
          this.B = B
          this.C = C
      }
  
      constructor(A: String) {
          this.A = A
          val (_B, _C) = Calculator.calculate(A)
          this.B = _B
          this.C = _C
      }
  }
  </code></pre>
  
  <p>This approach uses two secondary constructors without primary one. But from my point of view, it looks pretty heavy. Is it possible to rewrite this logic in a more elegant way?</p>