Friday, 29 December 2017

Kotlin: Default constructor

If you do not declare any constructor (primary or secondary) in your non-abstract class, kotlin will generate a default primary constructor with no arguments.

What is the access scope of this primary constructor?
The default constructor has public scope by default.


Previous                                                 Next                                                 Home

No comments:

Post a Comment