السلام عليكم ورحمه الله وبركاته
كيفكم
ممكن حد يساعدني يحل السؤال انا ماافهم بالبرمجه
Define a class named Rectangle which contains two data members: length and width. The class has some member functions:
• A constructor with two parameters that assigns values to the data members of the created object.
• Function area() to compute the area of the rectangle.
• Function getdata( ) to prompt the user to enter the length and width for a rectangle.
• Function showdata( ) to display length, width and area of a rectangle.
ولكم مني جزيل الشكر
