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
Hire Me!
I'm currently looking for my next role in developer evangelism and advocacy. I have a long history of helping companies work with developers and love to write, create demos, and present at conferences. You can find my resume to learn more and drop me an email (raymondcamden@gmail.com) to reach out.
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.