Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Very brief question.
- If I do a class: `Circle.java`, for example. I declare as attribute `Radius`, and as getter and setter: `getRadius()` and `setRadius(float R)`.
- 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