Post

KotlinKotlin

I
Irshad Mohammad

Posted on 28th February 2024|32 views

0
votes

Kotlin Default Arguments

How the default argument in kotlin works?

Answers
P
divija reddy

Posted on 28th February 2024

We can give the default values to the parameters within the function definition. If the function is called by passing the arguments, then these arguments are utilized parameters. If the function is called without passing the arguments, then the default arguments are used.

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos