Roll up Summary fields in Salesforce

What is Roll up summary field in salesforce, what are the types of roll up summary field and how does it works