What is the function parameter with a default value in scala?
Answer Posted / Kush Dhwaj Kumar
"Function parameters with a default value in Scala are parameters that have a default value provided if no argument is passed during function call. The syntax for declaring a function parameter with a default value is: def function_name(parameter1: DataType = defaultValue): ReturnType{
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers