In Java you can overload constructors:
public Person(String name) { this.name = name; } public Person(String firstName, String lastName) { this(firstNam
class Person def initialize(name, lastName = nil) name = name + " " + lastName unless lastName.nil? @name = name end end