Hello Ferdinand,
Thursday, August 5, 2004, 8:07:05 PM, you wrote:
> On 5 Aug 2004 at 13:59, George Schlossnagle wrote:
>> > Can abstract methods be protected?
>>
>> No.
> Why not? Look at my singleton example...
Even your protected __construct can be overwritten and made public again.
So yo
On 5 Aug 2004 at 13:59, George Schlossnagle wrote:
> > Can abstract methods be protected?
>
> No.
Why not? Look at my singleton example...
--
Ferdinand Beyer
<[EMAIL PROTECTED]>
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
On Aug 5, 2004, at 1:51 PM, Jason Garber wrote:
Hello Marcus,
Can abstract methods be protected?
No.
George
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Hello Marcus,
Can abstract methods be protected?
--
Best regards,
Jasonmailto:[EMAIL PROTECTED]
Thursday, August 5, 2004, 1:32:05 PM, you wrote:
MB> Hello Ferdinand,
MB> Thursday, August 5, 2004, 5:01:42 PM, you wrote:
>> Trying to write a singleton interface:
Hello Ferdinand,
Thursday, August 5, 2004, 5:01:42 PM, you wrote:
> Trying to write a singleton interface:
> interface Singleton {
> // Disallow public construction
> protected function __construct();
> public static function getInstance();
> }
> I got an error saying I was not all
Trying to write a singleton interface:
interface Singleton {
// Disallow public construction
protected function __construct();
public static function getInstance();
}
I got an error saying I was not allowed to declare the constructor
protected - I should either use public or omit it