Add factory example

This commit is contained in:
2021-05-11 15:04:58 -04:00
parent 9bb2f9867d
commit 54426cbe5b
6 changed files with 156 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
#include "parts.hpp"
/*****************************************************************************/
// Gear
Gear::Gear(std::string name, float price) {
partName = name;
partPrice = price;
}