Skip to content

Instantly share code, notes, and snippets.

@Sottti
Created December 5, 2018 08:44
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 Sottti/bffc5a1bfa304c8b7b5b0632fdccdf5a to your computer and use it in GitHub Desktop.
Save Sottti/bffc5a1bfa304c8b7b5b0632fdccdf5a to your computer and use it in GitHub Desktop.
open class User(val userId: Int, val userName: String)
class Editor(userId: Int, userName: String, val rank: Int) : User(userId, userName)
class Moderator(userId: Int, userName: String, val type: Int) : User(userId, userName)
class Staff(userId: Int, userName: String, val department: String) : User(userId, userName)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment