Question: Define the needed class(es), providing necessary implementation details. Briefly comment on the maintainability of your class(es). Assume that you have been given these fully defined
- Define the needed class(es), providing necessary implementation details.
Briefly comment on the maintainability of your class(es).
- Assume that you have been given these fully defined and implemented classes:
unique where each unique object supports filter(a) which
accepts integer array a and returns a with all duplicates removed
uLess inherits from unique a and redefines filter(a)
to remove every other integer from a
replace inherits from unique and redefines filter(a)
to replace all multiples of 10 with 0 in the returned array
- Reuse the class(es) from IV, adding support for division,
- Define one or more classes that are maintainable and provide the functionality of uLessAdd, uLessSub, ulessDiv, replaceAdd, replaceSub, and replaceDiv. Each object
- encapsulates an integer r
- supports getSeq(x) which returns an array of integers
with a first value of r and subsequent values that uniformly increase or decrease proportional to x and according to type
Reuse the class(es) from IV
- In C#, design the class(es) needed so that each object instantiated
- encapsulates an integer myNum
myNum is stable but varies from object to object
- is associated with one arithmetic operation addition or subtraction
- supports reset()
- supports process(x)returns a value, according to associated arithmetic operation
myNum + count*x or myNum (count*x)
where count is the number of queries made so far by the client
- Define the class(es), providing all implementation details
- Briefly comment on the maintainability of your class(es)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
