Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I keep getting this error [b]"<b>Parse error</b>: syntax error, unexpected T_CLASS "[/b] every time I try to compile the following code:Code: Select all
<?php
abstract class boardGame implements iBoard,iBoardItem{
private $nRows;
private $nCols;
private $playerForTurn;
private $locationInformation;
public function getNumRows()
{
return $this->nRows;
}
public function setNumRows($numRows)
{
$this->nRows=$numRows;
}
public function getNumCols()
{
return $this->nCols;
}
public function setNumRows($numCols)
{
$this->nCols=$numCols;
}
public function getLocationInfo()
{
return $this->locationInformation;
}
public function setLocationInfo($locationInfo)
{
$this->locationInformation=$locationInfo;
}
}
?>Need help soon! Thanks.
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]