Class II are B-blockers, which target AV nodal repolarization due to decreasing sympathetic activation.
Class IV are Ca-channel blockers, which inhibit L-Type Ca channels in the SA/AV nodes, increasing refractoriness of the heart.
Here's a good crash course:
intro_to_antiarrhythmics [TUSOM | Pharmwiki]