Skip to content

Commit 8844ef3

Browse files
committed
added review06 for chapter13
1 parent 86d7d06 commit 8844ef3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Chapter13/review/06.txt

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
A default argument is the default value for a function's parameter.
2+
3+
It allows us to leave out the value for a default argument in calls to that function,
4+
using the default one for that instead.
5+
6+
It is an alternative for providing several overloaded functions.
7+
8+
Default arguments can only be defined for trailing parameters,
9+
non-default argumented parameters can not be after a default argumented parameter.

0 commit comments

Comments
 (0)