# Virtual work of a moving surface on a particle constrained to it

I've only just begun reading through Goldstein's Classical Mechanics. This section is on D'Alembert's Principle and Lagrange's Equations. The following quote is from the beginning of the section.

Note that if a particle is constrained to a surface that is itself moving in time, the force of constraint is instantaneously perpendicular to the surface and the work during a virtual displacement is still zero, even though the work during an actual displacement in the time $dt$ does not necessarily vanish.

What does this mean? I've tried to think of it in terms of a bead moving on a wire, or a ball on a moving plane—but it isn't obvious to me why the "virtual work" done by the surface of constraint is zero, and the "real work"... isn't?

Consider a a ball on a plane that is moving up. The plane is surely doing work on the ball, fighting against gravity to accelerate it upwards. In what situation is the work done on the ball by the plane zero (outside of the situation where time is frozen, in which case there's nothing interesting).