MohammedAhmed1-cell / CO452---Mohammed

Starting point for BlueJ apps - CO452.
0 stars 0 forks source link

Values should be assigned to objects, not classes #1

Open NicholasDay1992 opened 4 years ago

NicholasDay1992 commented 4 years ago

Hi Mo,

It would be better to leave the code in the class so that it can be used to assign any value - not just the ones you wrote... Remember that classes define structrue and objects hold the values. Therefore, it would be better to create objects and then pass those values in so they can be assigned to the fields. So I'd recommend reverting back to the original LabClass code, and then creating an object of it in BlueJ (right click and then select top option 'new LabClass()').

MohammedAhmed1-cell commented 4 years ago

Hi Nick

Sorry i dont understand, what lab class is this.

Kind regards Mohammed

On Mon, 19 Oct 2020 at 15:12, Nicholas Day notifications@github.com wrote:

Hi Mo,

It would be better to leave the code in the class so that it can be used to assign any value - not just the ones you wrote... Remember that classes define structrue and objects hold the values. Therefore, it would be better to create objects and then pass those values in so they can be assigned to the fields. So I'd recommend reverting back to the original LabClass code, and then creating an object of it in BlueJ (right click and then select top option 'new LabClass()').

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MohammedAhmed1-cell/CO452---Mohammed/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARFDLCDPLXZVG4RXURQ5ASDSLRCLFANCNFSM4SWGQEFQ .

NicholasDay1992 commented 4 years ago

Hi Mo,

I'm referring to the LabClass class in App01... It would also be helpful if you could organise the folder structure so that all the files related to App01 are in the same folder rather than separate folders.

Kind regards, Nick

MohammedAhmed1-cell commented 4 years ago

Hi Nick

I dont know how, but would it be possible to get a meeting to show me how. Thank you.

Kind regards Mohammed

On Tue, 20 Oct 2020 at 12:27, Nicholas Day notifications@github.com wrote:

Hi Mo,

I'm referring to the LabClass class in App01... It would also be helpful if you could organise the folder structure so that all the files related to App01 are in the same folder rather than separate folders.

Kind regards, Nick

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MohammedAhmed1-cell/CO452---Mohammed/issues/1#issuecomment-712783576, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARFDLCBXKNKDLZZGXAWPXLTSLVX2RANCNFSM4SWGQEFQ .