this class don't have any abstract method, what is the use of declaring this class as abstract?

is there any coding standard/genetic involved?

  • 1
    "abstract class Mage_Catalog_Block_Product_Abstract" just declare it abstract. – Abdul Jan 3 '17 at 9:19

In order to have an abstract class, you don't need to have abstract methods in it. you can just declare it abstract.
On the other hand, if you have an abstract method in it, the class HAS TO BE abstract.
In this case, that specific class is not meant to be instantiated. That's why is declared as abstract.
It is used only as a parent class that holds common logic for other classes that get to be instantiated.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.