delivery.h
Go to the documentation of this file.
1 #ifndef DELIVERY_H
2 #define DELIVERY_H
3 
4 #include <iostream>
5 #include <fstream>
6 #include <string>
7 #include <stdexcept>
8 #include "bike.h"
9 
10 using namespace std;
11 
20 class Delivery : public Bike
21 {
22  public:
23  Delivery();
24  Delivery( string id, string name, int gears, int capacity ) throw ( invalid_argument );
25  void setID( string id ) throw ( invalid_argument );
26  void setCapacity( int capacity ) throw ( invalid_argument );
27  int getCapacity() const;
28  virtual void print( ostream &out = cout ) const;
29  virtual void read( istream &in ) throw ( invalid_argument );
30 
31  protected:
32  int capacity;
33 
34 }; // Delivery class
35 
36 #endif // DELIVERY_H
37 
Definition: delivery.h:20
int capacity
Definition: delivery.h:32
Definition: bike.h:19