Overloaded constructors in Groovy


class Employee {
	String firstname
	String lastname
}
def employee = new Employee(firstname:"John",lastname:"Doe")
println employee.firstname
println employee.lastname

This will print

John
Doe