Add two distances in inch-feet by creating a class named 'AddDistance'
class AddDistance { public: AddDistance(double a, double b): _a(a), _b(b) {} double apply() const { return _a + _b; } private: double _a; double _b; };
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment