INHERITANCE Inheritance The Concept of one class deriving the properties of another class is termed as inheritance The Features of inheritance are The Class derived is known…