single object & switch statement