Constructor (object-oriented programming): Difference between revisions

Content deleted Content added
Citation bot (talk | contribs)
Add: isbn. | You can use this bot yourself. Report bugs here. | Suggested by Abductive | Category:All articles to be split | via #UCB_Category
m PHP: PHP-FIG PSR-12
Line 595:
private string $name;
 
public function __construct(string $name) : void
{
$this->name = $name;
}
 
public function getName() : string
{
return $this->name;