dseguy, 5 months ago French #PHP abstract logic : A concrete class can be made abstract again. A concrete method cannot be made abstract again. #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tips/abstract_again.html
#PHP abstract logic :
A concrete class can be made abstract again.
A concrete method cannot be made abstract again.
#phptip #phptrick
https://php-tips.readthedocs.io/en/latest/tips/abstract_again.html
shudder, 5 months ago French @dseguy The thing with inheritance is that it can be used either to create subtypes or to simply reuse some code and make a mess.
@dseguy The thing with inheritance is that it can be used either to create subtypes or to simply reuse some code and make a mess.
perfectykills, 5 months ago French @dseguy I asking myself when will it possible to declare a method protected or private in an interface. This would be extremly usefull
@dseguy I asking myself when will it possible to declare a method protected or private in an interface. This would be extremly usefull
dseguy, 5 months ago French @perfectykills i haven’t heard talks about that. Protected methods can be achieved with an abstract class, though private would still be a challenge. How would you use that?
@perfectykills i haven’t heard talks about that. Protected methods can be achieved with an abstract class, though private would still be a challenge. How would you use that?
perfectykills, 5 months ago French @dseguy my basic problems are just that I sometimes need to archive some state with multiple interfaces and internal function. Something where I can call from the same class the function again. Like for the decorator purpose. If you dont want to extend a class endlessly but have some features to add in the construct.
@dseguy my basic problems are just that I sometimes need to archive some state with multiple interfaces and internal function.
Something where I can call from the same class the function again.
Like for the decorator purpose.
If you dont want to extend a class endlessly but have some features to add in the construct.
Add comment