name = $name;
$this->surname = $surname;
$this->staff_id = $staff_id;
$this->contact_number = $contact_number;
}
function staffId() {
echo $this->staff_id;
}
}
$andres = new Staff("Andres", "Baravalle", "0123456", "01234567");
echo $andres->name; // ok
echo $andres->surname; // ok
// echo $andres->staff_id; // no!
// echo $andres->contact_number; // no!
$andres->staffId(); // yes
?>