Java Problem. compile and run the code below: /** A class to test the Door class. */ public class DoorTester { /** Tests the methods of the Door class @param args not used */ public static void main(String[] args) { Door frontDoor = new Door("Front", "open"); System.out.println("The front door is " + frontDoor.getState()); System.out.println("Expected: open"); } } Create a second Door object called “backDoor” with the name property “Back” and an initial state of “closed”. Verify that the object was properly created. Use the mutator to change the state of object backDoor to “open”. Verify that the mutator is working. Create a third Door object called “sideDoor” with the name property “Side” and an initial state of “open”. Verify that the object was properly created. Use the mutator to change the name of object sideDoor to “Front”. Verify that the mutator is working.
Java Problem.
compile and run the code below:
/**
A class to test the Door class.
*/
public class DoorTester
{
/**
Tests the methods of the Door class
@param args not used
*/
public static void main(String[] args)
{
Door frontDoor = new Door("Front", "open");
System.out.println("The front door is " + frontDoor.getState());
System.out.println("Expected: open");
}
}
Create a second Door object called “backDoor” with the name property “Back” and an initial state of “closed”. Verify that the object was properly created. Use the mutator to change the state of object backDoor to “open”. Verify that the mutator is working.
Create a third Door object called “sideDoor” with the name property “Side” and an initial state of “open”. Verify that the object was properly created. Use the mutator to change the name of object sideDoor to “Front”. Verify that the mutator is working.

Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images









