Why to put val or var in kotlin class constructors
If val or var is omitted then they won’t be properties, but parameters passed to constructor. You won’t be able to work with them outside of constructor.
If val or var is omitted then they won’t be properties, but parameters passed to constructor. You won’t be able to work with them outside of constructor.