هذي اول مشاركة لي حيث انا طالب هندسة كمبيوتر و عندى مادة برمجة ندرس فيها الحافا (انا مبتدئ بالجافا و ارجو المساعدة)
و عندي بعض الاسئلة حيث دخلنا الحين في درس
using Set & Get Methods
و انا مو فاهم هذا الميثود وااايد صعب ياريت تشرحون لي هذا الميثود
لان عندي هوم وورك مو عارف احلة بهذا الميثود و هو
Ceate class Rectangle. The class has attributes Length and Widht each of which defaults to 1.
it has methods that calculate the perimeter and the erea of the rectangle. it has set and get methods for both length and width . the set methods should verify that length and wigth are each floating -point numbers larger than 0.0 and less than 20.0 . Write a program to test class Rectangle.
و ياريت الشرح يكون بالعربي
و شكراً

.jpg)