Re: abstract static

From: Date: Wed, 01 Mar 2006 09:56:32 +0000
Subject: Re: abstract static
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-22043@lists.php.net to get a copy of this message
Hello Derick, a static method is invoked without an instance but through the class. An abstract method is a placeholder that allows calling at that level of hierarchy. So when you have a code that deals with some objects derived from an abstract class you may call the abstract method on that instance because the derived class it was created from must have implemented the abstract methods of your abstract class. In contrast nobody would force you implement abstract static classes and even if we would do (actually we do that) you could still invoke the static method through the class and - bang! Since interfaces behave differently and do not allow to call something anyway they can be used to insert abstarct static methods in your code. best regards marcus Wednesday, March 1, 2006, 10:21:43 AM, you wrote: > Hello! > What is the reason why "abstract static" is no longer > allowed in HEAD?

« previous php.internals (#22043) next »