آخرین اطلاعات منتشرشده درباره «کلاس RectBox» را در ادامه بخوانید.
کلاسRectBox با قابلیت تنظیم و دریافت طول و عرض مستطیل و محاسبه ی محیط و مساحت آن
class RectBox
tarif field// }
;private int _height
;private int _width
meghdardehi be _height//
(public void Setheight(int h
}
;height = h_
{
dastresi be _height//
()public int Getheight
}
;return _height
{
meghdardehi be _width//
( public void Setwidth(int w
}
width = _w
{
dastresi be _weight//
()public int Getwidth
}
;return _width
{
Method//
()public int Area
}
; return _width * _height
{
Method//
()public int Surface
}
;(return 2 * (_height + _width
{
{
برچسب:
نویسنده: هلیا جلالی