CGI interview question

What is OOPs? What are Constraints in SQL?