Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Java setter and getter?
- void setAge(int age) {
- if(age100)
- return;
- this.age=age;
- }
- public int getTotal() {
- return total_;
- }
- public int getTotal() {
- return a + b;
- }
- protected String name;
- public void setName(String newName){
- if(newName.length() > 5) this.name = newName
- }
- public String getName(){
- return this.name;
- }
- private double radius;
- private double angle;
Add Comment
Please, Sign In to add comment