It's UWAweek 24 (1st semester, 2nd exam week)

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 selected article
Showing 1 of 257 articles.
Currently 1 other person reading this forum.


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

Login to reply

👍?
helpful
11:28am Wed 22nd May, Andrew G.

ANONYMOUS wrote:

Are we allowed to modify the provided RangeIterator class? (for example, to add another method)

I would advise not to.

Technically the instructions and marking rubric do not forbid it, but there is no good reason to do so. You may lose marks like the style mark for elegant and logical code.

What is your motivation for adding a method?

If you believe modifying RangeIterator is the more elegant solution, then you may, but I will leave you with the following to consider: Think about the OOP design principles. RangeIterator already implements everything required by DoubleEndedIterator. Does the method you are adding introduce additional responsibilities into RangeIterator? Does it make sense for these responsibilities to be a part of every RangeIterator object?

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