User Tools

Site Tools


method_overloading

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
method_overloading [2018/01/24 12:52] wolfgangriedmannmethod_overloading [2018/01/24 12:55] wolfgangriedmann
Line 29: Line 29:
 .... ....
 method Foo( cString as string ) as int</code> method Foo( cString as string ) as int</code>
 +
 +Of course this applies also to longer parameter lists. Here a sample piece of code that uses overloaded constructors and chains them:
 +<code>class MyClass
 +
 +constructor( cFullName as string )
 +  return
 +  
 +constructor( cSurname as string, cName as string )
 +  super( cName + " " + cSurname )
 +  return</code>
 +
 +
  
  
method_overloading.txt · Last modified: 2018/01/24 12:56 by wolfgangriedmann