Advertisement
ARIELCARRARO

Persona.ceylon

Dec 28th, 2012
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. /**
  2. * @file Persona.ceylon
  3. * @version 0.1
  4. * @author Ariel Carraro
  5. * @date 28.diciembre.2012
  6. * @url codemonkey
  7. * @description Programa que imprime un mensaje
  8. */
  9.  
  10. doc "Clase Persona"
  11. by "Ariel Carraro"
  12. class Persona(){
  13. shared void verMsg(){
  14. print("funcionando...desde Ceylon");
  15. }
  16. }
  17. //se pude considerar la función "main" del programa
  18. void run(){
  19. verPersona(Persona());
  20. }
  21.  
  22. void verPersona(Persona persona){
  23. persona.verMsg();
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement