正在加载图片...
上游充通大 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY Circle New objects are created from a class by invoking a constructor.You can think of the class itself as a sort of factory for stamping out new instances. 。( Consider making a new circle object: mycircle Circle(Point (0,0),20) circle,the name of the class,is used to invoke the constructor. 7Circle • New objects are created from a class by invoking a constructor. You can think of the class itself as a sort of factory for stamping out new instances. • Consider making a new circle object: myCircle = Circle(Point(0,0),20) • Circle, the name of the class, is used to invoke the constructor. 7
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有