CGI Interview Question

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