and in B.getInstance just call A.getInstance, just in case B.getInstance is
called before A.getInstance in code
"A.Cicak" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> why dont you initialize properties var in your A's getInstance method
> like:
>
> public static function getIns
why dont you initialize properties var in your A's getInstance method like:
public static function getInstance() {
if(Singleton._instance == null) {
Singleton._instance = new Singleton();
//initialize properties var here
}
return Singleton._
2 matches
Mail list logo