No new
necessary
In Kotlin the keyword new
does not exist.
New instances are created simply by calling a class’s constructor whose call syntax does not differ from other member functions.
Consider this Java example:
Person person = new Person("Alex", "Example");
in Kotlin:
val person = Person("Alex", "Example")
This is one of the many trivial things that Kotlin brings with it to save on Java code and get rid of unnecessary code.