// the Plane class Plane { private: int capacity; // tank capacity int left; // left tank capacity int right; // right tank capacity public: // constructor Plane(); // add to tanks void addLeft(int leftFill); void addRight(int rightFill); //test for full tanks bool tanksFull(); }; // *********************************************************** // Plane class implementation // *********************************************************** // constructor Plane::Plane() { left = 0; right = 0; capacity = 100; } // add to tanks void Plane::addLeft(int leftFill) { left = left + leftFill; } void Plane::addRight(int rightFill) { right = right + rightFill; } //test for full tanks bool Plane::tanksFull() { bool full = false; if ((left >= capacity)&&(right >= capacity)) { full = true; } return full; }