Hi all new to this forum, just thought i'd post in here because i am having a bit of trouble with an assignment... basically i have this class in a header file called Product.h...
class Product
{
private:
int _id;
unsigned int _price;
public:
};
I access this code a lot as i have an array of products in my main.cpp but we had to change this from a struct to this so i have done so and had to create a new source file (product.cpp) for the get and set functions but i am having a bit of trouble in how to do this i include the Product.h but then as for the functions i do not know where to start! Thanks