Consider the following class.
public class WindTurbine
{
private double efficiencyRating;
public WindTurbine()
{
efficiencyRating = 0.0;
}
public WindTurbine(double e)
{
efficiencyRating = e;
}
}
Which of the following code segments, when placed in a method in a class other than WindTurbine, will construct a WindTurbine object wt with an efficiencyRating of 0.25 ?
A WindTurbine wt = new WindTurbine(0.25);
B WindTurbine wt = 0.25;
C WindTurbine wt = new WindTurbine();wt = 0.25;
D WindTurbine wt = new WindTurbine();wt.efficiencyRating = 0.25;
E new WindTurbine wt = 0.25;