题目内容
(请给出正确答案)
提问人:网友shifor1983
发布时间:2022-01-07
[主观题]
六、 Write a program to design a class named Circle ,the class contains: 1. One double data
field named r that specify the radius of the circle; 2. A non-arg constructor which gives 1 to r; 3. A constructor with one argument which gives value to r; 4. A method named getArea()that returns the area of this circle; 5. A method named getPerimeter()that returns the perimeter .
简答题官方参考答案
(由简答题聘请的专业题库老师提供的解答)
抱歉!暂无答案,正在努力更新中……