Avanade interview question

Describe Inheritance and Encapsulation