英语翻译A numerical solution of (5.26) can be obtained by the st
yuki2145202022-10-04 11:39:541条回答
英语翻译
A numerical solution of (5.26) can be obtained by the straightforward extension of the Planet class as shown in Listing 5.5.To simplify the drawing of the particle trajectories,the PIanet2 class defines an inner class Mass,which extends Circle and contains a Trail.Whenever a planet moves,a point is added to the trail so that its location and path are shown on the plot.Inner classes are an organizational convenience that save us the trouble of having to create another file,which in this case would be named Mass.Java.When we compile the PIanet2 class,we will produce a bytecode file named PIanet2$Mass.cl ass in addition to the file Plane t2.class.Inner classes are most effective as short helper classes which work in conduction with the containing class,because they have access to all the data (including private variables) in the containing class.
A numerical solution of (5.26) can be obtained by the straightforward extension of the Planet class as shown in Listing 5.5.To simplify the drawing of the particle trajectories,the PIanet2 class defines an inner class Mass,which extends Circle and contains a Trail.Whenever a planet moves,a point is added to the trail so that its location and path are shown on the plot.Inner classes are an organizational convenience that save us the trouble of having to create another file,which in this case would be named Mass.Java.When we compile the PIanet2 class,we will produce a bytecode file named PIanet2$Mass.cl ass in addition to the file Plane t2.class.Inner classes are most effective as short helper classes which work in conduction with the containing class,because they have access to all the data (including private variables) in the containing class.
已提交,审核后显示!提交回复
共1条回复
- xc5l9l 共回答了12个问题
|采纳率100% - A numerical solution of (5.26) can be obtained by the straightforward extension of the Planet class as shown in Listing 5.5.
如表5.5所示,数值解(5.26)可以通过Planet类的简单延伸获得.
To simplify the drawing of the particle trajectories,the PIanet2 class defines an inner class Mass,which extends Circle and contains a Trail.
为了简化粒子运动轨迹的作图,PIanet2类定义了一个内部类Mass.Mass扩展了Circle并包含一个Trail.(译者注:Circle和Trail极可能也是类.)
Whenever a planet moves,a point is added to the trail so that its location and path are shown on the plot.
每当一个行星(planet)移动时,这一点即被添加到的轨迹(trail)中,以便将它的方位和路径显示在图中.
Inner classes are an organizational convenience that save us the trouble of having to create another file,which in this case would be named Mass.Java.
内部类是组织上的一个便利,免去了我们必须另建一个文件--这里可能会被命名为Mass.Java--的麻烦.
When we compile the PIanet2 class,we will produce a bytecode file named PIanet2$Mass.class in addition to the file Plane t2.class.
当我们编译PIanet2类时,除Plane t2.class之外,我们还会生成一个名为PIanet2$ Mass.class的字节码文件.
Inner classes are most effective as short helper classes which work in conduction with the containing class,because they have access to all the data (including private variables) in the containing class.
内部类作为短的辅助性类在其所属类的输导下工作时最为有效,因为他们能获得其所属类中的所有数据(包括私有变量). - 1年前
相关推荐
大家在问
- 1(2013•沙县质检)农业生产中需要施肥,肥料主要为农作物的生长提供( )
- 2西亚以什么为中心,形成巨大石油带
- 3用小数计算下面各题:6元7角+3元零9分=1吨350千克+65千克=8千米-5千米670米=
- 4师徒共加工零件一些,张师傅两人分别完成任务的五分之二时,俩人正好一共加工零件二百四十个.师徒两人还一下多少个零件未加工.
- 5His suggestion ______ to see the art exhibition _____ every
- 6英汉翻译:按时、准时、及时、有时、同时
- 7比35的7分之2多8的数是
- 8余闲居 案头瓶花不绝与幼时记趣所记之趣有什么不同
- 9从句是什么? 从现主将了?。。。。求解
- 10若a是不为1的有理数,我们把1/1-a称为a的倒差数.如:2的倒差数是1/1-2=-1,-1的倒
- 113.There are many_____-shoes in this shop/
- 127.4V 220mA电源 用220欧电阻降压后 电流能否供起STC15F2K60S2 负载为22
- 13同买一支钢笔,小明花了自己零花钱的七分之一,小刚也花了自己零花钱的七分之一,他俩钱数相同.( )
- 14两个同心圆的半径分别为1cm和2cm,大圆的弦AB与小圆相切,那么AB=( )
- 15从下列的字母中找出五个单词FDOGKADUCKSPCATRLPIGMNPANDA