Please solve the question....!!
Its very very urgent...!!
Plz help me
Attachments:
Answers
Answered by
1
Answer:
class rectangle
{
int x,y;
void displayArea(int l,int b)
{
x=l;
y=b;
int rect_area()
{
int area;
area=x*y;
return area;
}}
class rect
{
public static void main(string args[])
{
rectangle r=new rectangle();
r.displayArea(20,10)
int ar=r.rectarea();
system.out.printIn("The area of the rectangle="+ar);
}
}
Explanation:
Similar questions