请教一下类的问题
leboc 2009-12-01 05:06:06 class ask
{
var $db;
var $pages;
var $number;
var $table;
var $table_posts;
function __construct()
{
global $db;
$this->db = &$db;
$this->table = DB_PRE.'ask';
$this->table_posts = DB_PRE.'ask_posts';
$this->pay = load('pay_api.class.php', 'pay', 'api'); //_______________这里
$this->credit = load('credit.class.php', 'ask', 'include'); //_______________这里
}
}
这里"$this->credit"和"$this->pay" 没有声明 怎么可以使用呢?