Create inheritance.cpp

Demonstrates public, private and protected inheritance.