Welcome Guest, Not a member yet? Register   Sign In
calling parent constructors
#2

[eluser]theprodigy[/eluser]
I don't believe it is "necessary", but it is good practice.
By default, if PHP does not find a constructor, it will look to the parent for one.

The only time it is absolutely necessary for the php class to have a constructor is if you want something to happen when your class is instantiated, that differs from just calling the parent constructor. Other then that, it's not necessary, but like I said, it's just good practice.


Messages In This Thread
calling parent constructors - by El Forum - 05-15-2010, 11:39 PM
calling parent constructors - by El Forum - 05-15-2010, 11:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB