Hi all
How can call a super class constractor in PHP for example

class A
{
  var $name;
  function A($name)
  {
      $this->name=$name;
  }
}

class B
{
  var $size;
  function B($name,$size)
  {
     // How can call A constractor for initialize name variable in here
    $this->size=$size;
  }
}

thanks for help

mad nas









-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to