Join Slack
Is it possible to instantiate a class and dynamically extend it to different interfaces based on a v...
# getting-started
h
Hullaballoonatic
06/12/2018, 4:06 PM
Is it possible to instantiate a class and dynamically extend it to different interfaces based on a variable dictating which?
a
Andreas Sinz
06/12/2018, 4:11 PM
should this class implement the interfaces at compile-time or run-time?
h
Hullaballoonatic
06/12/2018, 7:33 PM
Sounds like it can only happen at one of them?
a
Andreas Sinz
06/12/2018, 7:55 PM
exactly, java/kotlin only support compile-time
5
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by