Advertisement
nikminer4sv

Untitled

Nov 15th, 2022
707
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #ifndef PRODUCT
  2. #define PRODUCT
  3.  
  4. #include <string>
  5.  
  6. struct Product {
  7. public:
  8.     std::string type;
  9.     double price;
  10.  
  11.     Product();
  12.  
  13.     Product(std::string type, double price);
  14.  
  15.     std::string GetType() const;
  16.  
  17.     friend bool operator==(const Product& a, const Product& b) {
  18.         return true;
  19.     }
  20. };
  21.  
  22.  
  23. #endif
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement