What will be the output of the following program?
public class RoomAndFan {
public static void main(String[] args) {
Room r = new Room();
Fan f = new Fan();
r.name = "Hall";
r.flooring = "Marble";
r.width = r.height = 12;
f.speed = 1500;
r.fan.color = "Brown";
r.fan.numberOfWings = 3;
System.out.print(r.name + r.flooring + r.width + r.height);
System.out.print(r.fan.speed + r.fan.color + r.fan.numberOfWings);
}
}
class Room {
String name;
String flooring;
int width, height;
Fan fan = new Fan();
}
class Fan {
double speed;
String color;
int numberOfWings;
}