I am trying to write the following code, though it is wrong it will probably demonstrate best why I am trying to do.
class myClass
{
private $name = "";
private $startAddress = new myAddress(); // this is the issue
private $endAddress = new myAddress(); // this is the issue
}
How can I accomplish this properly?
Thank You