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


 UWA week 17 (1st semester, week 8) ↓
SVG not supported

Login to reply

👍?
helpful
3:53pm Tue 23rd Apr, Andrew G.

ANONYMOUS wrote:
> None of the subclasses we are required to write ask us to make use of this abstract method. > Are we just supposed to ignore it? > What is its purpose?
The lab worksheet instructs you to implement subclasses of the `SetExpression` abstract class. This requires you to implement the `contains` method. The worksheet and the comment on the `contains(elem)` method also explain that it "Evaluates if the set resulting from the expression contains elem". You are expected to implement `contains()` correctly such that it has the required behaviour. The tests verify that your implementation of `contains` behaves correctly for simple examples. I hope that helps. All the information you need should be in the worksheet.

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