It's UWAweek 17 (1st semester, week 8)

help2005

This forum is provided to promote discussion amongst students enrolled in CITS2005 Object Oriented Programming.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying the 2 articles in this topic
Showing 2 of 100 articles.
Currently 1 other person reading this forum.


 UWA week 11 (1st semester, week 3) ↓
SVG not supported

Login to reply

👍?
helpful
10:16am Sat 16th Mar, Xiao Z.

In the writing of the isPrime method, the question doesn't say whether the method should be static or non-static. Should we be concerned about this, or just assume the default is non-static?


 UWA week 12 (1st semester, week 4) ↓
SVG not supported

Login to reply

👍?
helpful
11:51am Wed 20th Mar, Andrew G.

You can get either to work, but given that the `isPrime` method has no reason to depend on any object state, static makes the most sense.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  5:07AM Sep 06 2023
Privacy policy