-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParcelX.java
More file actions
41 lines (31 loc) · 769 Bytes
/
Copy pathParcelX.java
File metadata and controls
41 lines (31 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package NestedInnerClasses;
/**
* Created by theartiste on 1/6/16.
*/
public class ParcelX {
String x = "naveen";
public class ParcelY {
public ParcelY(String y) {
x = y;
}
public class ParcelY1 {
public ParcelY1() {
System.out.println("Inside ParcelY1 constructor.");
}
}
}
public void showX() {
System.out.println(x);
}
public static class ParcelZ {
String x = "soumya loves naveen.";
public void showX() {
System.out.println(x);
}
public static class ParcelZ1 {
public ParcelZ1() {
System.out.println("Inside ParcelZ1 constructor.");
}
}
}
}