Juniper Networks Interview Question

Write a code for inheritence