This repository has been archived on 2020-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
ibz/web/1_sem/aufgaben_tag5.php

42 lines
926 B
PHP

<?php
class Person {
// attributes
protected $name;
protected $firstname;
protected $age;
protected $domicile;
// methodes
public function __construct($name, $firstname, $age, $domicile () {
$this->name = $name;
$this->firstname= $firstname;
$this->age= $age;
$this->domicile= $domicile;
}
public function getName() {
return $this->name;
}
public function setName() {
$this->name = $name;
}
public function getFirstname() {
return $this->firstname
}
public function setFirstname() {
$this->firstname= $firstname;
}
public function getAge() {
return $this->age
}
public function setAge() {
$this->age= $age;
}
public function getDomicile() {
return $this->domicile
}
public function setDomicile() {
$this->domicile= $domicile;
}
}
?>