Does code in the constructor add to code in subclass constructors?
- by Jeremy Rudd
Does code in the constructor add to code in subclass constructors? Or does the subclass's constructor override the superclass? Given this example superclass constructor:
class Car{
     function Car(){ 
          trace("CAR")
     }
}
...and this subclass constructor:
class FordCar extends Car{
     function FordCar(){ 
          trace("FORD")
     }
}
When an instance of FordCar is created, will this trace "Car" and "Ford" ??