How to use b2ContactListener ?

I've been looking through the manual and looking online, but I can't seem to find how to actually call the extended b2ContactListener ....

For normal flash listeners I would:

hero.addEventListener(CONTACT_EVENT, heroOnGround);

function heroOnGround()
{
hero_can_jump=true;
}

How would I add a contact listener for box2d?
How does it know which contact listener to call, unless you add the listener?
How do you know which objects are being called (would I extend the b2Body class to be attached to my "sprite" like classes, or is there an existing way to link them?)
😕 😕

Original thread: https://box2d.org/forum/viewtopic.php?t=5490