Bernese Mountain Dogs are subject to compulsory socialization, and the sooner you start teaching the puppy commands, the better for both of you. Despite their imperturbable appearance, Bernese Shepherds are very sensitive dogs, so you should not yell at a pet, as well as use physical violence against it.
