Is this bad programming?
Posted: Mon Nov 20, 2006 10:37 am
I have an Intranet web app that has gotten to be quite bloated, so I have child classes for various components of the app (administration area, etc).
I have a scenario in which the parent is calling a method from the child.
It looks like this:
I'd never really done that before, and I was wondering if this is the proper way to do it, or if there's a better way to do it.
I have a scenario in which the parent is calling a method from the child.
It looks like this:
Code: Select all
$this->obj = new childClass;
$this->obj->nameOfChildMethod();