Re: [PHP-DEV] Protected methods in interfaces

2004-08-05 Thread Marcus Boerger
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

Re: [PHP-DEV] Protected methods in interfaces

2004-08-05 Thread Ferdinand Beyer
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

Re: [PHP-DEV] Protected methods in interfaces

2004-08-05 Thread George Schlossnagle
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

Re: [PHP-DEV] Protected methods in interfaces

2004-08-05 Thread Jason Garber
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:

Re: [PHP-DEV] Protected methods in interfaces

2004-08-05 Thread Marcus Boerger
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

[PHP-DEV] Protected methods in interfaces

2004-08-05 Thread Ferdinand Beyer
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