-
Notifications
You must be signed in to change notification settings - Fork 0
/
product.cpp
44 lines (34 loc) · 846 Bytes
/
product.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* Universidade Federal do Rio de Janeiro
* Escola Politecnica
* Departamento de Eletronica e Computacao
* EEL670 - Linguagens de Programacao - Turma 2020/2
* Prof. Miguel Elias M. Campista
* Autor: Luiz Carlos Aguiar Carrion & Maria Eduarda de Souza Mafra
* Trabalho Final - Etapa 2
* Decricao: Implementacao da class Product
*
*/
#include <string>
#include <iostream>
#include "product.h"
#include "algorithms.h"
using namespace std;
Product::Product(string productName, string productPrice, string productUrl, string storeName, bool wish) {
name = productName;
store = storeName;
price = strToFloat(productPrice, wish);
url = productUrl;
}
string Product::getStore() {
return store;
}
string Product::getName() {
return name;
}
float Product::getPrice() {
return price;
}
string Product::getURL() {
return url;
}