Complete class using a test unit that manages the sliding doorwith writing instance variables, accessors, and mutator methods,also use of if statements to provide conditional logic. Also writetests to verify the proper operation of your code.
Type a class that monitors and controls the operation of the
sliding door of a minivan.
Rules:
The door can be locked or unlocked at any time, by using a
lock-unlock button on the dashboard.
When the door is closed, the door can only be successfully
opened if:
1. gear shift lever is in park; and
2. door is unlocked.
When is like that, any of the following mechanisms will
successfully open the door:
1. with
PayPal Gateway not configured
PayPal Gateway not configured