Point: A Point in a two dimensional plane has an integer x coordinate value and an integer y coordinate value.
Rectangle: A Rectangle is a class that has three attributes: 1) Point type data that represent the top-left point of the rectangle, 2) integer length and 3) integer width.
a. Write the appropriate class definition for Point class and Rectangle class with necessary constructors, mutator and accessor functions.
b. Write a function that will take two objects of Rectangle class as parameter and return whether they intersect or not.