Skip to content

Instantly share code, notes, and snippets.

Created April 21, 2020 18:53
What would you like to do?
interface Foo{
fun doStuff()
companion object
fun Foo.Companion.CreateFoo():Foo = RealFoo()
private class RealFoo : Foo{
override fun doStuff() {
"Doing Stuff"
//Somewhere else in your application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment