正在加载图片...
polymorphism oWe have an array of Shapes,and we ask each Shape to draw()itself O The correct method will be called OThe Circle's draw()method if the Shape object is actually Circle,Square's draw()if it's actually a Square O-O term:polymorphismpolymorphism lWe have an array of Shapes, and we ask each Shape to draw() itself lThe correct method will be called ¡The Circle’s draw() method if the Shape object is actually Circle, Square’s draw() if it’s actually a Square lO-O term: polymorphism
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有