Join Slack
Powered by
Hi. Can someone tell me how to get a reference to ...
# getting-started
p
pserzh
04/29/2017, 8:09 PM
Hi. Can someone tell me how to get a reference to the class container from the companion object?
https://www.screencast.com/t/Txhuy9WiQ
m
miha-x64
04/29/2017, 8:10 PM
pserzh: impossible: companion is a singleton (equivalent of static members), but class can have many instances. Which means that you can access companion from class, not vice versa.
p
pserzh
04/29/2017, 8:11 PM
@miha-x64
thanks for your answer
2
Views
Open in Slack
Previous
Next