menu
Qamnty
Login
Register
My account
Edit my Profile
Private messages
My favorites
Need comments added to the following java code: public class Point { private double x; private double y; private String type; public void setXY(double xx, double yy) { x = xx; y…
Ask a Question
Questions
Unanswered
Tags
Ask a Question
Need comments added to the following java code: public class Point { private double x; private double y; private String type; public void setXY(double xx, double yy) { x = xx; y…
asked
Jun 13, 2023
178k
views
1
vote
Need comments added to the following java code:
public class Point {
private double x;
private double y;
private String type;
public void setXY(double xx, double yy) {
x = xx;
y = yy;
}
public double getY() {
return y;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public double[] getDimensions() {
return new double[] { x, y };
}
public String toString() {
return "Point [" + x + ", " + y + "] is " + type;
}
}
Computers & Tech
college
Zsawaf
asked
by
Zsawaf
7.5k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
7
votes
Answer: Are there options for this?
Step-by-step explanation:
Peterdn
answered
Jun 19, 2023
by
Peterdn
8.6k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
May 14, 2020
192k
views
class bClass{public:void setX(int a);//Postcondition: x = a;void print() const;private:int x;};class dClass: public bClass{public:void setXY(int a, int b);//Postcondition: x = a; y = b;void print() const;private:int
Clinomaniac
asked
May 14, 2020
by
Clinomaniac
7.6k
points
Computers & Tech
high-school
1
answer
0
votes
192k
views
asked
May 28, 2021
179k
views
public class Point { private int x; private int y; public void setx(int x) this.x = x; public void setY(int y) this.y=y; public void setXY(int x, int y) X=y; ysy; public boolean IsEqual(Point p) return
Ajthinking
asked
May 28, 2021
by
Ajthinking
8.1k
points
Engineering
college
1
answer
1
vote
179k
views
asked
Jun 21, 2021
139k
views
double getX() returns the xPos value double getY() returns the yPos value void setX(double x) sets xPos, no requirements void setY(double y) sets yPos, no requirements double distanceToOrigin() returns
Jdw
asked
Jun 21, 2021
by
Jdw
8.6k
points
Computers & Tech
college
1
answer
4
votes
139k
views
Ask a Question
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qamnty