Skip to content
Advertisement

Tag: abstract-function

How to declare abstract method in non-abstract class in PHP?

reports: PHP Fatal error: Class absclass contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (absclass::fuc) I want to know what it means by implement the remaining methods,how? Answer I presume that remaining methods actually refers to the abstract methods you’re trying to define (in this case, fuc()), since the non-abstract methods that might

Advertisement