Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class myOrders {
- private int theta, distance;
- public myOrders()
- {
- setAll(0,0);
- }
- public myOrders(int theta, int distance) {
- setAll(theta, distance);
- }
- public void setAll(int theta, int distance) {
- this.theta = theta;
- this.distance = distance;
- }
- public int getTheta() {
- return theta;
- }
- public void setTheta(int theta) {
- this.theta = theta;
- }
- public int getDistance() {
- return distance;
- }
- public void setDistance(int distance) {
- this.distance = distance;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement