<Kotlin constructor val vs private val> If I have ...
# stackoverflow
u
Kotlin constructor val vs private val If I have something like the following: interface IRecordService { fun doSomething () : Record } @MongoRepository interface IRecordRepository : MongoRepository { } @Service class RecordService ( private val recordRepository : IRecordRepository // or just val instead of private val ) : IRecordService { override fun doSomething () : Record { // does something } } Is there any difference between using private val in the RecordService constructor vs just val? I've seen...