On a class of degenerate parabolic equations with dynamic boundary conditions