method_overloading
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
method_overloading [2018/01/24 12:55] – wolfgangriedmann | method_overloading [2018/01/24 12:55] – wolfgangriedmann | ||
---|---|---|---|
Line 32: | Line 32: | ||
Of course this applies also to longer parameter lists. Here a sample piece of code that uses overloaded constructors and chains them: | Of course this applies also to longer parameter lists. Here a sample piece of code that uses overloaded constructors and chains them: | ||
< | < | ||
+ | |||
constructor( cFullName as string ) | constructor( cFullName as string ) | ||
return | return | ||
+ | | ||
constructor( cSurname as string, cName as string ) | constructor( cSurname as string, cName as string ) | ||
- | super( cName + " " + cSurname )</ | + | super( cName + " " + cSurname ) |
+ | return</ | ||
method_overloading.txt · Last modified: 2018/01/24 12:56 by wolfgangriedmann