Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2019-09-22 01:10:03 +05:30
parent 3cba765c80
commit 0b249c279b
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class Person(val name: String, val age: Int = 18) {
Lots of new things here! Let's break them down.
Kotlin has a feature called 'default parameters`, that allows you to specify default values for parameters, thus making them optional when creating an instance of the class.
Kotlin has a feature called 'default parameters', that allows you to specify default values for parameters, thus making them optional when creating an instance of the class.
Let's take these for a spin on [repl.it](https://repl.it)!