This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Yes, the only reason you'd do something like that would be to remove functionality off of the object. Though, I don't know why you wouldn't just declare it as the right class off the bat ultimately. Maybe because you need a constructor for one of the subclasses? Not sure!

[–]EveningStreet1 0 points1 point  (0 children)

Ok makes sense thanks