tarlejh Posted June 1, 2009 Share Posted June 1, 2009 I'm aware these are used for different situations, but can classes, abstract classes, and interfaces all be thought of as abstractions? For instance, supposing you have data that is presented as HTML. You have abstraction layers underneath it: HTML -> XML -> class -> abstract class , etc.. Is it correct to say that an abstract class, while more abstracted than a class, basically serves the same purpose in OO theory? Quote Link to comment https://forums.phpfreaks.com/topic/160532-whats-the-difference-between-an-interface-and-a-class/ Share on other sites More sharing options...
Daniel0 Posted June 1, 2009 Share Posted June 1, 2009 http://www.phpfreaks.com/forums/index.php/topic,252620.msg1186465.html#msg1186465 Quote Link to comment https://forums.phpfreaks.com/topic/160532-whats-the-difference-between-an-interface-and-a-class/#findComment-847213 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.