Using Abstract Classes to Define Rules
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 12959
Total Votes: 139 votes
Category: PHP/Object Oriented
Submitted on: 2008-03-16 07:45:00
Submitted By: Devesh Khanna
Description:The way i visualize this is to think that i am entering into an 'agreement' between me and PHP. In other words, I have defined a list of methods (rules) in the interface that I (or any other developer) must implement in any implemented class, so in any implemented classes i am agreeing to conform with the interface's rules. More detail...