enerjiza Posted February 15, 2007 Share Posted February 15, 2007 I have been wondering what the point of creating and implementing an interface class is. If anyone could explain this it would be helpful. Link to comment https://forums.phpfreaks.com/topic/38632-php-5-interface-class/ Share on other sites More sharing options...
Jenk Posted February 15, 2007 Share Posted February 15, 2007 So that you can enforce type hinting of your objects, and share that type hinting across many objects. If objectA implements interfaceA, you can be sure that objectA will have those methods and properties specified in interfaceA. Link to comment https://forums.phpfreaks.com/topic/38632-php-5-interface-class/#findComment-185480 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.