queue classes has sense in php? [closed]

dayana

New Member
\[quote\] Possible Duplicate:
Does the order of class definition matter in PHP? \[/quote\]\[code\]class a { function __construct () { $obj = new b(); echo $obj->sum(); }} class b { function sum () { return 3+4; } }$obj_a = new a();\[/code\]this code works, but I interest how much justified is this code? that is: first time is writed class a, in him we call class b, but class b is writed after a. in this example, wille be better way writed class b before a? or not sense?
 
Top