Tutorial by Examples

Consider following is our function call. FindArea(120, 56); In this our first argument is length (ie 120) and second argument is width (ie 56). And we are calculating the area by that function. And following is the function definition. private static double FindArea(int length, int width) ...
Consider preceding is our function definition with optional arguments. private static double FindAreaWithOptional(int length, int width=56) { try { return (length * width); } catch (Exception) { thro...

Page 1 of 1