Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Students
- {
- public $name;
- public $age;
- public $color;
- public $id;
- public function studentsList($name,$age,$color,$id){
- echo $this->name = $name . '<br>';
- echo $this->age = $age . '<br>';
- echo $this->color = $color . '<br>';
- echo $this->id = $id . '<br>';
- echo '<hr>';
- }
- }
- $Gostudent = new Students();
- print_r($Gostudent->studentsList('wael','36','white',13));
- class Sony extends Students
- {
- public $camera = '25 MB';
- }
- $SonyNew = new Sony();
- print_r($SonyNew->studentsList('wael','36','white',13));
Add Comment
Please, Sign In to add comment