Advertisement
Guest User

Untitled

a guest
Sep 16th, 2014
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1. /**
  2.   * Author: Nathan Norman
  3.   * Date: 2014-SEP-16
  4.   * Created for HW 2, Question 3 Part B
  5.   * HW URL: http://www.radford.edu/~itec380/2014fall-ibarland/Homeworks/hw03.html
  6.   */
  7.  
  8. public class Ball {
  9.  
  10.     int x;
  11.     int y;
  12.     int vx;
  13.     int vy;
  14.     int radius;
  15.    
  16.     public Ball (int _x, int _y, int _vx, int _vy, int _radius)
  17.     {
  18.         this.x = _x;
  19.         this.y = _y;
  20.         this.vx = _vx;
  21.         this.vy = _vy;
  22.         this.radius = _radius;
  23.     }
  24. }
  25.  
  26. //Ball slowBall = new Ball(10, 10, 1, 1, 5);
  27. //Ball hugeBall = new Ball(10, 10, 5, 5, 50);
  28. //Ball speedBall = new Ball(10, 10, 30, 30, 5);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement