A community for students.
Here's the question you clicked on:
 0 viewing
math456
 2 years ago
I need help, plz! Design and implement in Java, a class Rectangular tht supports two methods: 1). Area(double x, double y) tht returns the area of a rectangular of width x and length y. 2). perimeter(double x, double y) tht returns the perimeter length of a rectangle of width x & length y.
math456
 2 years ago
I need help, plz! Design and implement in Java, a class Rectangular tht supports two methods: 1). Area(double x, double y) tht returns the area of a rectangular of width x and length y. 2). perimeter(double x, double y) tht returns the perimeter length of a rectangle of width x & length y.

This Question is Closed

math456
 2 years ago
Best ResponseYou've already chosen the best response.1@Hero @jim_thompson5910

Hero
 2 years ago
Best ResponseYou've already chosen the best response.0I'm pretty sure this is a Computer Science question

math456
 2 years ago
Best ResponseYou've already chosen the best response.1its Information technology!

Hero
 2 years ago
Best ResponseYou've already chosen the best response.0But Java is a Computer Science related course. Information Technology is more closely related to Computer Science.

raes001
 2 years ago
Best ResponseYou've already chosen the best response.0math456: I need help, plz! Design and implement in Java, a class Rectangular tht supports two methods: 1). Area(double x, double y) tht returns the a…

tyteen4a03
 2 years ago
Best ResponseYou've already chosen the best response.0I'm going to answer anyway... *sigh* I don't do Java, so if there's any mistakes in my code please autocorrect them. Also note that this is not a CS section  this would fit better in the CS Category. class Rectangular { public static area(double x, double y) { return x*y; } public static perimeter (double x, double y) { return (2*x + 2*y); } } (the static keyword can be omitted but keeping the static method prevents creating this method for every instance of the object that uses this class.)
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.