Dobby kept hurting himself in numerous ways, e.g. Ironing his hands, and hitting his head against a lamp. He felt this was necessary because he was disobeying his masters, the Malfoy family.
Dobby will have to punish himself most grievously for coming to see you, sir. Dobby will have to shut his ears in the oven door for this. Every time Dobby does not live up to the expectations of his masters (the family he serves), he injures himself.
Obedience. A house-elf had to obey any commands given to them by their masters. At times, they seemed to desire to disobey these orders, but as their master's orders were "the house-elf's highest law", they couldn't, and were forced to punish themselves if they did.
While Dobby's death was arguably the saddest moment in the entire franchise, it's not as if Harry Potter's author just threw his death in there to keep the audience emotionally distraught. His horrific death at the hands of Bellatrix Lestrange was a necessary addition to the story — here's why.
As Harry Disapparates, Bellatrix throws her knife at him. Harry, not knowing where he is heading, is relieved to find, in the midst of his Disapparition, that he can feel Dobby alongside. Arriving at Shell Cottage, Harry discovers that Dobby has been fatally wounded by Bellatrix' thrown knife.
This year, Rowling is is sorry for, “for killing someone who didn't die during the Battle of Hogwarts, but who laid down his life to save the people who'd win it.” “I refer, of course, to Dobby the house elf,” Rowling wrote on Twitter.
Attempts to save Dobby include applying Essence of Dittany, a potion known for accelerating wound healing. However, Hermione, who is responsible for administering the potion, lacks the knowledge and resources at the time to address the severity of Dobby's injury.
In the book, it's primarily because: Hermione didn't disapparate with Harry and Dobby from Malfoy manner. So it's possible she wasn't close by them. Ron apparated with her based on the description of the scene and not knowing Dobby's injury, he probably took her right back to Shell Cottage without thinking.
When Dobby's last words before dying in Harry's arms are "Such a beautiful place, to be with friends. Dobby is happy to be with his friend, Harry Potter."
However, he met his demise in "Harry Potter and the Deathly Hallows," when he was killed by Bellatrix Lestrange while attempting to help Harry escape from Death Eaters at Malfoy Manor. Harry and his friends then took his little elf body and buried it along the beach.
The Elf Must Not Be Touched
Considered the most important rule, the Scout Elf must never be touched (of course, apart from when the parents move them around) as that will cause them to lose their magical powers. In some cases, they could also disappear when touched, such as when a dog might get a hold of them.
Elf on the Shelf rules
Children shouldn't touch the Scout Elves or they'll lose their Christmas magic. Scout Elves listen well, but they never speak to humans. Scout Elves are always nice, often clever and humorous, but never cruel or naughty.
According to the WOMBAT test, it is possible that house-elves have an average life expectancy of 200 years, cannot be ordered to kill themselves, breed infrequently and only with their master's permission, can override wizard enchantments, and have an allegiance to their home rather than its inhabitants.
At the end of that book, Harry tricks Lucius Malfoy into handing Dobby a sock, thereby freeing him from his servitude. Dobby keeps the sock until his death, which comes as he rescues Harry and his friends from the dungeon at Malfoy Manor. Dobby dies in Harry's arms on the beach after they disapparate there.
Dobby had tried to save his llfe, but done so in n unacceptable way, ie by keeping him away from Hogwarts and his friends there, and intercepting his mail. Harry was telling Dobby that such interference with Harry's freedom of choice was wrong, however honourable the motives.
Socks are an important symbol for Dobby, as it represents his freedom from slavery. In the Harry Potter series, house elves are immediately freed from enslavement if their master gives them clothing.
Dumbledore dies in the sixth book and movie, but he later comes to Harry in a vision when the titular wizard is facing off against Lord Voldemort. Dumbledore's last line is very similar in the final book and movie. He tells Harry in the film, "Of course it's happening inside your head, Harry.
Albus Dumbledore
"Severus, please." Watching Snape kill the Hogwarts headmaster was gutting; finding out that Dumbledore "begging for his life" was actually begging Snape to kill him was a sad reminder of just how selfless this man was.
In reality, Dobby's Grave is located on Freshwater West beach in Pembrokeshire. Why didn't Harry use magic to bury Dobby? Dobby was a dear friend to Harry, so he wanted to provide him with a proper burial. Hence, he refused to use magic to bury him.
After being on the run from a bunch of Snatchers, the gang were taken to Malfoy Manor, where Bellatrix proceeded to torture Hermione using the Cruciatus Curse. It was a testament to Hermione's toughness that she was able to walk away without lasting damage.
To begin with, Dobby admires / loves Harry because he defeated Lord Voldemort. And then when Dobby meets Harry for the first time, Harry is kind to him and treates him as an equal. For a creature that is usually treated as worse than dirt, that's a powerful thing.
Hermione sees Harry as only a friend so she has no trouble hugging him. The same is not true of Ron who she has stronger, unacknowledged feelings for. She doesn't want to hug him for fear it will become immediately and plainly obvious to him and even Harry how she feels about Ron.
What was the lotion/potion Hermione put on their hands when they emerged from the water after using the dragon as their getaway ride? In the book, there are two curses on the objects in Bellatrix's vault. If you touch them they multiply—and they burn you. She uses essence of dittany to regrow skin on their hands.
Because they knew Bellatrix lost her wand, therefore, showing it would have blown their cover.