Content Supported by Sourcelens Consulting
B lt : BM: 6 ( � � �� � � � �� ��� ��� �Ȥ � � �� � � � �� ��� ��� ��� ��� ��� ��� �� �� �� �� �� �� �� �Ϫ �� �� �� �� �� �� �� Ϫ� ��� ��� ��� ��� ��� ��� ��� �� �� �� �� �� �� �� �Յ ﺅ �� �� Յ� ��� ��� ��� `�� `�� `�� `�� `�� `� `� `�` ��` ��` ��` ��` ��` �` �` �`` �`� �`� �`� �`� �`� �`� �`� da� :e� :�� :�� :�� :� :� :�e :�: e�: ��: ��: ��: �: �: �e: �:: �:e �:� �:� �:� �:� �:� e:� @<� M� z� �� �� ש �z �M M� z� �� �� ש �z �M � �M �z �� �� �� z� M� #� @� e� �� �� �� �e �? ?� e� �� �� �� �e �? � �? �e �� �� �� e� ?� � 2� P� o� �� �o �P �2 � P� o� �� �o �P �2 �2 �P �o �� o� P� 2� � %f Qg gg gQ g: g$ $g Qg gg gQ g: g$ g: gQ gg Qg :g 000 GGG ___ www ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� � � �� � � � �� ��� ��� ��� ��� � � �� � � � �� ��� � B lt : BM: 6 ( � � �� � � � �� ��� ��� �Ȥ � � �� � � � �� ��� ��� ��� ��� ��� ��� �� �� �� �� �� �� �� �Ϫ �� �� �� �� �� �� �� Ϫ� ��� ��� ��� ��� ��� ��� ��� �� �� �� �� �� �� �� �Յ ﺅ �� �� Յ� ��� ��� ��� `�� `�� `�� `�� `�� `� `� `�` ��` ��` ��` ��` ��` �` �` �`` �`� �`� �`� �`� �`� �`� �`� da� :e� :�� :�� :�� :� :� :�e :�: e�: ��: ��: ��: �: �: �e: �:: �:e �:� �:� �:� �:� �:� e:� @<� M� z� �� �� ש �z �M M� z� �� �� ש �z �M � �M �z �� �� �� z� M� #� @� e� �� �� �� �e �? ?� e� �� �� �� �e �? � �? �e �� �� �� e� ?� � 2� P� o� �� �o �P �2 � P� o� �� �o �P �2 �2 �P �o �� o� P� 2� � %f Qg gg gQ g: g$ $g Qg gg gQ g: g$ g: gQ gg Qg :g 000 GGG ___ www ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� � � �� � � � �� ��� ��� ��� ��� � � �� � � � �� ��� � � Polymorphism allows early binding on objects of different classes. In this example, a TimeTest method is called on a mix of Triangle, Rectangle, and Polygon objects (see rotating display). In the first test TimeTest is called early bound, from the IShape interface all three classes share. In the second test it's called from the objects' own default interfaces, and thus is late bound. (Code for these objects illustrates multiple interfaces, the Implements statement, and code reuse.)