package demo /** * This class supports greeting people by name. * * @property name The name of the person to be greeted. */ class Greeter(val name: String) { /** * Prints the greeting to the standard output. */ fun greet() { println("Hello $name!") } } fun main(args: Array) { Greeter(args[0]).greet() }