Join Slack
Powered by
mixed it up, and you also have an instance of B th...
# announcements
d
devbridie
01/10/2018, 11:07 AM
mixed it up, and you also have an instance of B that is an A
B b = B()
. Then it is legal to assign a Lion to b, however the specification for A does not allow this (it accepts only subtypes of Child), which a Lion is not
4
Views
Open in Slack
Previous
Next