Helios Solutions interview question

What is Inheritance in programming and how it is used explain with example? What is the main difference between for and while loop? In which aspects you contributed in your project?