Hey guys,

I am almost at the end of my assignment but when I showed my code to a friend and also my demonstrator
I was told the way I was passing the data between the three classes for "menu prompt (2)" was wrong.

My original program had methods I wrote to set and get data within the store class it would set and get data on private
variables for that class so the MatesInterface class could use the store get methods to print the data.

So my question is how would I get the product data to the MatesInterface class without using the Product classes get methods in the Mates interface.

Here is the assignment sheet and marking scheme, the store class has marks for having set methods and get methods within the store class. https://www.dropbox.com/sh/yf7c7eev9dclupu/xR7KdTa9nU

As with posting code, I am a little reluctent only because it is an assignment I know you guys probably might need to look at it though.

any help or discussion would be awesome :)

2 Years
Discussion Span
Last Post by josh.leong2

cool, here you go they will expire in the next hour

interface class: http://pastebin.com/7ez5p6Bj

store class: http://pastebin.com/8AafEsfg

product class: http://pastebin.com/gvzDiHs9

so my issue is I need to print the data fields in the interface class without using product get methods within the interface class.

I had this but I was told that it was the wrong way and would lose marks for it

old store class: http://pastebin.com/Y6QGG4Dw

sorry about the names they are only temp and I am going to go rename everything before I submit it. I'm not allowed to use arrays yet either.

I was also thinking that I will need variables in the store method anyway to
hold certain data for the EOQ section of the store class anyway, so maybe I can pass the data through to the interface that way?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.