Inheritance (C#)

Inheritance lets one class (the child) reuse and extend the members of another class (the parent) using a colon. The child gets the parent's fields…