Advertisement
ARIELCARRARO

Persona.groovy

Dec 28th, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.43 KB | None | 0 0
  1. /**
  2.  * @file Persona.groovy
  3.  * @version 0.1
  4.  * @author Ariel Carraro
  5.  * @date   28.diciembre.2012
  6.  * @url    codemonkey
  7.  * @description Programa que muestra un mensaje
  8.  */
  9.  
  10. //aqui defino la clase principal
  11. class Persona{
  12.  
  13.     def verMsg(){
  14.         println "funcionando...desde Groovy"
  15.     }
  16. }
  17.  
  18. //método principal del programa
  19. static main(args) {
  20.    verPersona(new Persona())
  21. }
  22.  
  23. def verPersona(Persona persona){
  24.     persona.verMsg()
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement