The docs are talking about annotations / visibility modifiers that are applied to the constructor itself.
In your example, the `val`s are marked as private, but the constructor is still public. If you wanted a private constructor, you would have to use
private constructor
.
bruno.aybar
07/19/2018, 3:22 AM
The same would apply if for example you wanted to use the
@JvmOverloads
annotation, you would have to add the constructor keyword too
s
Sudhir Singh Khanger
07/19/2018, 3:25 AM
Oh okay. So it's annotations/visibility modifiers applied to the constructor. Thanks.