Wednesday, 8 August 2012

How to call parent constructor ?

If you write your own constructor, you propably will want to call a parent construtor first to set up a class. You can do it in that way:parent::__construct();This can be used also to call parent methods.

No comments:

Post a Comment