I am trying to write an OOP for my project and i am get stuck on this. Can anyone give me some advise?
<?php
require_once ('class.UserAddress.php');
class User{
public $id;
public $name;
public $username;
public $password;
private $arrayAddress; //An array of UserAddress
//DO I NEED TO DO ANYTHING HERE?
ON THE USERADDRESS class ALREADY DEFINE EVERYTHING LIKE, do i need to do it here too?
public function __construct
public function get and set ID;
public function get and set street1;
public function get and set city;
public function get and set state;
public function get and set zip;
}
?>