CSC112 Spring 2016 Examples
1// File: shape.h 2// Purpose: Class prototype for our generic shape & a helper function. 3 4#ifndef SHAPE_H 5#define SHAPE_H 6class shape { 7public: 8 virtual void draw()=0; 9 virtual void getUserParameters(int firstLine)=0; 10}; 11 12// Helper function, which allows a user to create a shape. 13// If the user decides, instead, to quit, it returns NULL 14shape *getUserShape(); 15 16#endif 17 18 19