For example, suppose I want an ICar
interface and that all implementations will contain the field Year
. Does this mean that every implementation has to separately declare Year
? Wouldn’t it be nicer to simply define this in the interface?
For example, suppose I want an ICar
interface and that all implementations will contain the field Year
. Does this mean that every implementation has to separately declare Year
? Wouldn’t it be nicer to simply define this in the interface?