I was wondering if it's possible to add 2 different attributes to a single attribute. For example I have two attributes:
private var modelYear:int as ModelYear
private var manufacturedCd:String as ManufacturerCd
I would like to put both of these attributes into one attribute called "personalVehicle". So then I can derive these values from personalVehicle on another class.
To clarify my question:
- Can I add two attributes into one attribute called personalVehicle?
- If so, how can I pull just the modelYear from the personalVehicle attribute on another class?
Thanks