Override Default Values. This is not allowed and results in a compiler error. Overriding functions cannot specify default values for their parameters . Kotlin requires that default values can only be specified in the base class functions.
Read moreCan we give default value in function with optional positional parameter?
OptionalAttribute parameters do not require a default value .
Read more