/*
function ClassName([parameterList]) {
// Constructor code goes here.
}
*/
class Car {
private var _sMake:String = null;
private var _sModel:String = null;
private var _sExteriorColor:String = null;
public function Car() {
switch(arguments.length) {
case 3:
_sExteriorColor = arguments[2];
case 2:
_sModel = arguments[1];
case 1:
_sMake = arguments[0];
}
}
}
|