Question: you must write (and use) a new Rectangle C++ class as part of this assignment. For this assignment, your rectangle class will store the boundaries

you must write (and use) a new Rectangle C++ class as part of this assignment. For this assignment, your rectangle class will store the boundaries of a region in an image (but it should not be limited to this use). For example, you might store the first row/column and the number of rows/columns (or the last row/column). It should not store any image data it is just bookkeeping the current region boundaries. Your class should have constructor(s), accessors, and mutators. Overload operator<< to output the information in human readable form (whether you use it or not). Also, overload operator== and operator!=. You may add additional methods if you like. Do not use dynamic memory in this class (the compiler supplied copy constructor, destructor, and operator= will be fine in this case, so you wont need to write them). You will use this class in your recursive method to keep track of the current region of interest and pass new values in recursive calls as the regions change. Summary of required methods: constructor(s), accessors, mutator(s), operator<<, operator==, operator!=

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!