Constructor (object-oriented programming): Difference between revisions

Content deleted Content added
m Reverted edits by 117.239.5.211 (talk) to last revision by 202.65.133.178 (HG)
PHP: added public visibility keyword
Line 478:
private $name;
 
public function __construct($name)
{
$this->name = $name;
}
 
public function getName()
{
return $this->name;