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

20 lines
381 B
C++
Raw Normal View History

2021-05-11 19:42:08 +00:00
#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;
}