class_mult avoided
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
enum Color {
|
||||
WHITE(21)
|
||||
BLACK(22)
|
||||
RED(23)
|
||||
YELLOW(24)
|
||||
BLUE(25)
|
||||
private var code : Int
|
||||
private (c : Int) {
|
||||
code = c
|
||||
}
|
||||
public fun getCode() : Int {
|
||||
return code
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user