yup..that's what happened..
i tried to run the code in Studio 2003 and Studio 2005 and it is giving Derived : 2 as the output!!