2.按以下要求编写程序 (1) 创建一个Rectangle类,添加width和height两个成员变量 (2) 在Rectangle中添加两种方法分别计算矩形的周长和面积 (3) 编程利用Rectangle输出一个矩形的周长和面积
单选题关于图3.19的叙述()是不正确的。ARectangle类和Circle类都有名为area的属性,这两个属性一定是相同的属性BRectangle类和Circle类都有名为getArea的操作,这两个操作一定是相同的操作CRectangle中名为length的属性和Circle类中名为radius的属性,这两个属性一定是不同的属性DShape类有一个属性,Circle类有两个属性,Rectangle类有三个属性
点击查看答案
单选题The length of a rectangle is 5 more than the side of a square, and the width of the rectangle is 5 less than the side of the square. If the area of the square is 45, what is the area of the rectangle?A 20B 25C 45D 50E 70
问答题A rectangle is equal in area to a square with sides of length 12. Is the diagonal of the rectangle greater in length than 20? (1) The rectangle has a length of 16. (2) The rectangle has a width of 9.
判断题使用RECTANGLE命令创建的矩形,其边将总是水平或竖直的。()A 对B 错
单选题Which statements concerning the effect of the statement gfx.drawRect(5, 5, 10, 10) are true, given that gfx is a reference to a valid Graphics object?()A The rectangle drawn will have a total width of 5 pixels.B The rectangle drawn will have a total height of 6 pixels.C The rectangle drawn will have a total width of 10 pixels.D The rectangle drawn will have a total height of 11 pixels.
填空题在NX中,选择区域的类型有矩形(Rectangle)和()。
单选题按住Ctrl键Rectangle可以画()。A 矩形