Hi,
i have a adress CDT with all the address fields and Address_Type(Values:"HOME_ADDRESS","MAILING_ADDRESS","EMPLOYER_ADDRESS"). now is it a good design if I can capture all the address in one local variable local!allAddress(map type) and map outside the Interface. or is it okay to construct AddressType inside the interface and taking out as RI.
Discussion posts and replies are publicly visible
Its better to go with 2nd approach because, the first approach involves extra step to construct from the map while it can be directly constructed once inside the interface (2nd approach).
I see no other major advantage.