Question: LANGUAGE IS C# THIS IS FOR !!!OPTIONALPARAMETERS!!! Create a method that accepts 3 parameters length width &height but if any of the three are not
LANGUAGE IS C# THIS IS FOR !!!OPTIONALPARAMETERS!!!
Create a method that accepts 3 parameters length width &height but if any of the three are not passed to the method, thendefault values are assigned.
Invoke the method you created four times, passing it 1, 2, 3 andthen no parameters. To show that it can handle each option.
***To be clear, this assignment requires more than justcreating a method that requires 3 arguments to be passed to themethod in those three parameter positions. It has to have defaultvalues set in the event parameters are not passed avalue.***
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
