Skip to content

Instantly share code, notes, and snippets.

@nhoxbypass
Created January 12, 2020 17:14
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 nhoxbypass/112d066e8c0c64c53bffa63de7821d5b to your computer and use it in GitHub Desktop.
Save nhoxbypass/112d066e8c0c64c53bffa63de7821d5b to your computer and use it in GitHub Desktop.
class Saber(val powers: Int) {
companion object Factory {
fun makeLightSaber(powers: Int): LightSaber {
return LightSaber(powers)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment