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
Last revisionBoth sides next revision
method_overloading [2018/01/24 12:55] wolfgangriedmannmethod_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:
 <code>class MyClass <code>class MyClass
 +
 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 )</code>+  super( cName + " " + cSurname ) 
 +  return</code> 
  
  
  
method_overloading.txt · Last modified: 2018/01/24 12:56 by wolfgangriedmann