What are the differences between sharks whales and dolphins?

Sharks have straight dorsal fins, dolphins have curved dorsal fins and whales don't have dorsal fins :)