In CF10, the new operator calls init implicitly, and we should not call it explicitly when creating the object.
But what happens if I have a REST service with an init method; properties defined in init become available inside any REST resource?
My tests show that they do not. Ultimately, calling REST calls a function, and I believe that every call to an implicit function leads to the creation of an object behind the scenes.
Is REST different from creating / creating an object of a normal object? Is it possible to create init (it can be, but it is an effective / good practice)?
source share