Alarm.com interview question

What's the difference between an interface and a class?