title: How to use a variable from another class in Kotlin?
body: <p>I just have a (hopefully) simple question. How do I make a variable in one class that can be accessed by another class in Kotlin? </p>
  
  <p>Class A: </p>
  
  <pre><code>var isBlue = 1
  </code></pre>
  
  <p>Class B:</p>
  
  <pre><code>if isBlue==1 then ...
  </code></pre>