Moving an object given rotation angle

just need the code templet for moving an object in the direction it is angled at(the rotation). I never learned how to do it but if someone game me the code it would really helpful?