title: Access methods outside companion object - Kotlin
body: <p>I'm pretty new to kotlin and I was wondering if it's possible, and if it's against best practice to access methods and variables that are outside a companion object, from within the companion object.</p>
  
  <p>For example</p>
  
  <pre><code>class A {
      fun doStuff(): Boolean = return true
  
      companion object{
          public fun stuffDone(): Boolean = return doStuff()
      }
  }
  </code></pre>
  
  <p>or something like that</p>
  
  <p>Thank you</p>