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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started