Because you can't typecast helicopter objects as aircraft objects, I'd argue your example cannot apply polymorphism in the true sense of the term. Inheritance is the key a was shown in the OP while what you showed composition.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Because you can't typecast helicopter objects as aircraft objects, I'd argue your example cannot apply polymorphism in the true sense of the term. Inheritance is the key a was shown in the OP while what you showed composition.