Advertisement
nikminer4sv

Untitled

Nov 15th, 2022
696
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include "product.h"
  2.  
  3. Product::Product() = default;
  4.  
  5. Product::Product(std::string type, double price) {
  6.     this->type = type;    
  7.     this->price = price;
  8. }
  9.  
  10. std::string Product::GetType() const {
  11.     return this->type;
  12. }
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement