正在加载图片...
上游充通大 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY Circle myCircle Circle(Point(0,0),20) This statement creates a new circle instance and stores a reference to it in the variable mycircle. The parameters to the constructor are used to initialize some of the instance variables (center and radius)inside mycircle. 8Circle myCircle = Circle(Point(0,0), 20) • This statement creates a new Circle instance and stores a reference to it in the variable myCircle. • The parameters to the constructor are used to initialize some of the instance variables (center and radius) inside myCircle. 8
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有