klips/cpp/patterns/abstract-factory/parts.cpp

20 lines
381 B
C++

#include "parts.hpp"
/*****************************************************************************/
// Gear
Gear::Gear(std::string name, float price) {
partName = name;
partPrice = price;
}
/*****************************************************************************/
// Spring
Spring::Spring(std::string name, float price) {
partName = name;
partPrice = price;
}