Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Author: Nathan Norman
- * Date: 2014-SEP-16
- * Created for HW 2, Question 3 Part B
- * HW URL: http://www.radford.edu/~itec380/2014fall-ibarland/Homeworks/hw03.html
- */
- public class Ball {
- int x;
- int y;
- int vx;
- int vy;
- int radius;
- public Ball (int _x, int _y, int _vx, int _vy, int _radius)
- {
- this.x = _x;
- this.y = _y;
- this.vx = _vx;
- this.vy = _vy;
- this.radius = _radius;
- }
- }
- //Ball slowBall = new Ball(10, 10, 1, 1, 5);
- //Ball hugeBall = new Ball(10, 10, 5, 5, 50);
- //Ball speedBall = new Ball(10, 10, 30, 30, 5);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement