Can not understand java statement with new operator -
Generally, use the new ObjClass (args)
to create a new object how to understand?
import org.jzy3d.plot3d.builder.Mapper; ...... mapper mapper = new mapper (public) {public double F (double x, double y) {return 10 * math. (X / 10) * Math Kos (Y / 20) * x; }};
If mapper
is a class, then this is an anonymous class Which increases it if the mapper
is a final
class, then this code will not be compiled.
If the mapper
is the interface, then it creates an anonymous class that implements it.
More info:
-
Comments
Post a Comment