is-a relationship
The relationship inheritance expresses; an hourly worker is an employee.
B should extend A only if every B can stand in for an A in every use; the everyday sentence is a hint, the substitution principle is the test.
See also
The relationship inheritance expresses; an hourly worker is an employee.
B should extend A only if every B can stand in for an A in every use; the everyday sentence is a hint, the substitution principle is the test.
See also