Jump to content

extended classes


astralaaron

Recommended Posts

In short: No, and that doesn't quite make sense.In PHP 5.4, there's traits, that serve a similar purpose - a trait is a lot like an abstract class. A class would be able to "use" one or more traits, and any extended classes will have access to all traits of their parent class, as well as any traits they themselves might use. So as long as a trait is in a parent class, an extended class will have it, but if not, it could explicitly use a different trait that may happen to also be used by another class.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...