Created
January 12, 2020 17:14
-
-
Save nhoxbypass/112d066e8c0c64c53bffa63de7821d5b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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