aboutsummaryrefslogtreecommitdiff
path: root/usage_examples/experimental/AccessorsExample_post.jpage
blob: ae5a39db3b2acd83847dc523cf7da706e07c6d46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
public class AccessorsExample {
	private int age = 10;
	
	public int age() {
		return this.age;
	}
	
	public AccessorsExample age(final int age) {
		this.age = age;
		return this;
	}
}

class PrefixExample {
	private String fName = "Hello, World!";
	
	public String getName() {
		return this.fName;
	}
}