adplus-dvertising
frame-decoration

Question

Why is downcasting possible in any language?

a.

Because inheritance follows has-a relationship

b.

Because inheritance follows is-a relationship

c.

Because inheritance doesn’t follow any relationship

d.

Because inheritance is not involved in casting

Answer: (b).Because inheritance follows is-a relationship

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Why is downcasting possible in any language?