fork download
  1. enum PersonType {
  2. hello("Vraj"),
  3. bye("Parth")
  4.  
  5. private var _name: String
  6.  
  7. private construct(name: String) {
  8. _name = name
  9. }
  10.  
  11. function myName() {
  12. print("My name is " + _name)
  13. }
  14. }
  15.  
Success #stdin #stdout 3.51s 170584KB
stdin
Standard input is empty
stdout
Standard output is empty