
They cannot back feed when there is no grid power, yes. But they cannot differ between power used inside the house or outside the house. They can and will definitely push power back out to the grid as long as they detect grid power from other sources.
OOP not just inheritance. Object oriented programming starts with structuring things in objects, like the name suggests. It quickly has a place in anything more then a few hundred lines of code.