C++
Differentiate between multilevel, multiple, and hierarchical inheritance. Write simple programs to show the difference among them. Explain the problem faced while using multiple inheritances in C++. Write a program to demonstrate the concept of polymorphism with a base class of Building with attributes size and location and a member function getArea.
ii.
There are two child classes: "Flat" and "Home".