GDOT has contacted you to help write code to control the Parking Lot barricades (the arms that come down to prevent cars from entering without paying) in Georgia. You must create (in C++) a Parking Lot class with three hidden attributes (Paid, Up and Down), two constructors (a default that sets Paid and Up to false, Down to true and an overloaded that sets Paid and Up to true and Down to false for testing purposes) and a method that changes the Paid to the opposite value and changes Up and Down appropriately.
GDOT has contacted you to help write code to control the Parking Lot barricades (the arms that come down to prevent cars from entering without paying) in Georgia. You must create (in C++) a Parking Lot class with three hidden attributes (Paid, Up and Down), two constructors (a default that sets Paid and Up to false, Down to true and an overloaded that sets Paid and Up to true and Down to false for testing purposes) and a method that changes the Paid to the opposite value and changes Up and Down appropriately.
Step by step
Solved in 3 steps with 2 images
Now you must create in C++ two Parking Lot objects from the class you just created (as described above) to prove that your class works properly for GDOT, the first object should use the default constructor and the second object should use the overloaded constructor.