Re: A Good OOP Tutorial/Read?

From: Date: Thu, 16 May 2013 23:45:51 +0000
Subject: Re: A Good OOP Tutorial/Read?
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-321096@lists.php.net to get a copy of this message
Thanks to both Bastien and Sebastian: While I understand that an interface is like an abstract Class, in that you don't have to flesh-out your methods, but rather where you define exactly how Classes who implement that interface will be required to flesh-out those methods. But so what? What's the point? Without giving me complicated examples, just give me one simple example that illustrates the advantage of using an interface over writing a new Class where you flesh-out whatever methods you want. After all, an interface requires the same thing, does it not? As such, I just don't see the advantage interfaces bring. Cheers, tedd _____________________ tedd.sperling@gmail.com http://sperling.com

« previous php.general (#321096) next »