Dassault Systèmes interview question

What is inheritance? What is the difference between margin and padding?