Class-based programming: Difference between revisions

Content deleted Content added
fixed typo
Critique of class-based models: Corrected some instances of "math" to "tmath" for consistency
Line 21:
:''Let <math>q(x)</math> be a property provable about objects <math>x</math> of type <math>T</math>. Then <math>q(y)</math> should be provable for objects <math>y</math> of type <math>S</math>, where <math>S</math> is a subtype of <math>T</math>.''
--><!-- inline math as HTML -->
<blockquote>''Subtype Requirement'': Let {{tmath| \phi(x) }} be a property provable about objects {{mathtmath| x }} of type {{mathtmath| T}}. Then {{tmath| \phi(y) }} should be true for objects {{mathtmath| y }} of type {{mathtmath| S }} where {{mathtmath| S }} is a subtype of {{mathtmath| T}}. </blockquote>
<!-- inline math as HTML bold
:''Let {{math| '''q(x)''' }} be a property provable about objects {{math| '''x''' }} of type {{math| '''T'''. }} Then {{math| '''q(y)''' }} should be provable for objects {{math| '''y''' }} of type {{math| '''S''', }} where {{math| '''S''' }} is a subtype of {{math| '''T'''. }}''