In C#:
Write a class representing an Apartment with an Address (astring – e.g. “123 main street”), Rent, Size (in square footrounded off). Where appropriate, make sure these properties haveerror checking for their set method.
Add a default constructor and a constructor that accepts valuesfor each property.
Add a ToString method.
Add a property that returns the price per square foot.
Include a main routine that tests all of your properties bysetting a property with allowable values then get the property andmaking sure it is the same value. You should also try invalidvalues that causes the program to crash. You will have to commentout these
PayPal Gateway not configured
PayPal Gateway not configured