Link to home
Start Free TrialLog in
Avatar of rgb192
rgb192Flag for United States of America

asked on

php abstract class real example

Please give real world explanations of why a php abstract class is needed.

What are the limitations.
SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rgb192

ASKER

An abstract class is one that defines methods but does not necessarily implement them. You are forced to implement the methods in derived classes. Similar to interfaces but allow you to define code in the base class.

I like this best:
In a way it's like using error_reporting(E_ALL).  To a novice, this is annoying because it shows all of his errors.  To a professional this is revealing because it enables him to fix all of his errors.

where there are 20 or more developers workin on an advanced implementation of a very complex multiple CLASS


thanks