Another interesting observation: If a method has a returnType of Beta, and you return Alpha, which is a CFC that extends Beta, will it work? Yes. This is a case where you say, basically, returnType equals a dog. Alpha is a poodle. Since a poodle is a dog, then life works as expected. (Or at least it makes sense to me. :)
(This post is more than 2 years old.)
returnType Part 2
Support this Content!
If you like this content, please consider supporting me. You can become a Patron, visit my Amazon wishlist, or buy me a coffee! Any support helps!
Want to get a copy of every new post? Use the form below to sign up for my newsletter.