CGI Interview Question

How can you implement inheritance with a real time example?