title: What is the correct way to add an abstract private getter and a public setter?
body: <p>I have an interface where I want a property that can be modified innside the class, but not outside. I cannot use val because it needs to be mutable and the var keyword can not have a specified private setter since this is in an interface.</p>
  
  <p>In Java I would have done this:</p>
  
  <pre><code>public &lt;T&gt; getMyProperty();
  </code></pre>
  
  <p>I can use the same approach in kotlin and just write the getter function dirrectly, but this does not seem like a kotlinlike approach. Is there a better way to achieve the same as this?</p>
  
  <pre><code>fun getMyProperty()
  </code></pre>