Advertisement
Guest User

df

a guest
Sep 29th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. Very brief question.
  2.  
  3. If I do a class: `Circle.java`, for example. I declare as attribute `Radius`, and as getter and setter: `getRadius()` and `setRadius(float R)`.
  4.  
  5. Now, if a do a method on `Circle.java`, `public float areaCircle()`, do I need to use `getRadius()` or can I just use `radius`.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement