Wednesday, April 25, 2018

Chapter 6

The following are exercises from chapter 6 of Software Development: An Open Source Approach.

6.1

function get_employer ( ) {
return $employer
}
function set_employer ( $new_employer ) {
$this->employer = $new_employer;
}
function get_contact_person ( ) {
return $contact_person;
}
function set_contact_person ( $new_contact_person ) {
$this->contact_person = $new_contact_person;
}
function get_contact_phone ( ) {
return $contact_phone;
}
function set_contact_phone ( $new_contact_phone ) {
$this->contact_phone = $new_contact_phone;
}

6.2
function __construct ( $f , $1 , $a , $c , $s , $z , $p1 , $p2 , $e , $t , $status , $employer , $contact , $contact_phone ) {
$this->f = $f;
$this->1 = $1;
$this->a = $a;
$this->c  = $c;
$this->s = $s;
$this->z = $z;
$this->p1 = $p1;
$this->p2 = $p2;
$this->e = $e;
$this->t = $t;
$this->status = $status;
$this->employer = $employer;
$this->contact = $contact;
$this->contact_phone = $contact_phone;
}

No comments:

Post a Comment