0

In a structural type system there may be cases where an inappropriate object is passed to an function because it implements the interface by chance.
For example,
class Chicken
{
private Breed breed;
private Weight weight;
private Date dateOfBirth;
private Length wingspan;
}
class...