Create class.cpp

Some pointers and inherance