Generics: in, out, where Classes in Kotlin can have type parameters, just like in Java: To create an instance of such a class, simply provide the type arguments: If the compiler can infer the type arguments, for example, from the constructor arguments, you don’t need to specify them explicitly: Variance One of the trickiest aspects of Java's type system is the wildcard types (see Java Generics FAQ).
