RosettaCodeData/Task/Named-parameters/Smalltalk/named-parameters.st

10 lines
268 B
Smalltalk
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
Object subclass: AnotherClass [
"..."
initWithArray: anArray [ "single argument" ]
initWithArray: anArray andString: aString [
"two args; these two methods in usage resemble
a named argument, with optional andString argument"
]
"..."
]