Connascence of Value (CoV)
Connascence of Value (CoV) occurs when two or more components' values are related or have an intrinsic range of validity in their input not expressed by their primitive types.
Let's consider the initial example:
public class Time { int _hour; int _minute; int _second; public Time(int hour, int minute, int second){ _hour = hour; _minute = minute; _second = second; } public string Display(){ return _hour + ":" + _minute + ":" + _second + ":"; } }
What happens if we instantiate it like this:
var myTime = new Time (27, 76, 82);
That's obviously not...