www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Super

reply Ty Tower <tytower mail.com> writes:
what does this do ?
super(null)

seen in program thus

public class MyWindow : ApplicationWindow
{    
    this()
    {
        addMenuBar;
        super(null);
    }
May 07 2008
parent Extrawurst <spam extrawurst.org> writes:
it calls the constructor of the inherited class with a parameter null.

like: ApplicationWindow.this(null);



Ty Tower schrieb:
 what does this do ?
 super(null)

 seen in program thus

 public class MyWindow : ApplicationWindow
 {    
     this()
     {
         addMenuBar;
         super(null);
     }
   
May 07 2008