YouTube, National Geographic video credit
Bees make up a hive, and they all have a unique role to play. Imagine being programmed to do a job from birth- bees live this reality.
The queen bee can choose genetically which sex and worker classes she needs in the hive. The queen holds sperm in her body and releases it in a certain method to program her workers.
Bee workers may guard and nurture larva, build the hive and guard the hive. It's all based upon the communal needs of the hive.
Awesome video, give it a watch. From National Geographic on YouTube.