#ifndef ROCKETH #define ROCKETH class rocket { double _length; //in meters double _v; //velocity in meters per second public: rocket(double initial_length, double initial_v) : _length(initial_length), _v(initial_v) {} virtual ~rocket() {} virtual double length() const {return _length;} double v() const {return _v;} }; #endif