Created
September 29, 2017 09:43
-
-
Save platoosom/c78858efab29d404a9fe33acb0c2d929 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class People { | |
public $idcard; | |
public $name; | |
public function __construct() { | |
$this->idcard = ''; | |
$this->name = ''; | |
} | |
public function setName($name) { | |
$this->name = $name; | |
} | |
public function getName() { | |
return $this->name; | |
} | |
} | |
class ThaiPeople extends People { | |
public function getIdCard() { | |
return $this->idcard; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment