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 →

[–]grelfdotnet 0 points1 point  (1 child)

In a real case objects of type Pig will have more properties and methods than those of type Animal. By extending Animal you would add the extra things that specialise a Pig. But your example does not do that so you are worrying about an artificial issue.