Skip to content

Instantly share code, notes, and snippets.

@5AbhishekSaxena
Created December 2, 2022 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 5AbhishekSaxena/7c0ec1076efc0477ca4f57c1c9871a2f to your computer and use it in GitHub Desktop.
Save 5AbhishekSaxena/7c0ec1076efc0477ca4f57c1c9871a2f to your computer and use it in GitHub Desktop.
class ClassA {
fun doSomething() {
println("Doing something")
}
}
class ClassB {
fun doIt() {
val classA = ClassA() // <- ClassB needs an object of ClassA in order to work properly
classA.doSomething()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment