Jump to content

extended classes


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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...