单选题:Suppose a JavaFX class has a binding property named weight of th
Suppose a JavaFX class has a binding property named weight of the type DoubleProperty. By convention, which of the following methods are defined in the class? @[B](2)
A. public double getWeight()
B. public DoubleProperty weightProperty()
C. public DoubleProperty WeightProperty()
D. public void setWeight(double v)
E. public double weightProperty()
A.public double getWeight()
B.public DoubleProperty weightProperty()
C.public DoubleProperty WeightProperty()
D.public void setWeight(double v)
E.public double weightProperty()
答案:B
A. public double getWeight()
B. public DoubleProperty weightProperty()
C. public DoubleProperty WeightProperty()
D. public void setWeight(double v)
E. public double weightProperty()
A.public double getWeight()
B.public DoubleProperty weightProperty()
C.public DoubleProperty WeightProperty()
D.public void setWeight(double v)
E.public double weightProperty()
答案:B