Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @file Persona.groovy
- * @version 0.1
- * @author Ariel Carraro
- * @date 28.diciembre.2012
- * @url codemonkey
- * @description Programa que muestra un mensaje
- */
- //aqui defino la clase principal
- class Persona{
- def verMsg(){
- println "funcionando...desde Groovy"
- }
- }
- //método principal del programa
- static main(args) {
- verPersona(new Persona())
- }
- def verPersona(Persona persona){
- persona.verMsg()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement