Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2019-09-22 01:10:03 +05:30
parent 97f549ef2f
commit 5cedcfdc35
No known key found for this signature in database
GPG Key ID: C2E74282C2133D62

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)!