1class DisplayOverloading2
2{
3 public void disp(char c)
4 {
5 System.out.println(c);
6 }
7 public void disp(int c)
8 {
9 System.out.println(c );
10 }
11}
12
13class Sample2
14{
15 public static void main(String args[])
16 {
17 DisplayOverloading2 obj = new DisplayOverloading2();
18 obj.disp('a');
19 obj.disp(5);
20 }
21}