In a compound microscope, the objective lens creates a real, inverted, magnified intermediate image. The eyepiece then forms a virtual image of this intermediate image without changing its orientation, resulting in a final image that is virtual and inverted.