Exercise 2

1 Variability and Subtyping

What is wrong with this class?



1.1

The constant m cannot be set to a non-constant value, in this case h + 28, with h having parameter variability meaning that it can be changed between simulations whereas m is always the same.