If your cat watches you open the cabinet enough times, he will, like my refrigerator-opening feline housemates, figure out how to do it by himself. Kittens learn by watching their mothers hunt, eat, groom, and so on, and then repeating the behavior themselves until they get it right.