PHP-Code:
<?php
class Person {
private $username ;
private $password;
private $email;
private $day;
private $month;
private $year;
function __construct($username , $password , $email, $day, $month, $year ) {
$this->username = $username ;
$this->password = $password;
$this->email = $email;
$this->day = $day;
$this->month = $month;
$this->year = $year;
}
function setUsername ($username ){
$this->username = $username ;
}
public function setPassword($password){
$this->password = $password;
}
function setEmail ($email ){
$this->email = $email ;
}
function setDay ($day ){
$this->day = $day ;
}
function setMonth ($month ){
$this->month = $month ;
}
function setYear ($Year ){
$this->Year = $Year ;
}
public function getUsername (){
return $this->username ;
}
public function getPassword(){
return $this->password;
}
public function getEmail(){
return $this->email;
}
public function getDay(){
return $this->day;
}
public function getMonth(){
return $this->month;
}
public function getYear(){
return $this->year;
}
}
?>
Einen Kommentar schreiben: