class A { void C() { int a=20; int b=30; int c; c=a+b; System.out.println(c); } void C(int x,int y) { int c; c=x+y; System.out.println(c); } void C(int x,double y) { double c; c=x+y; System.out.println(c); } public static void main(String[] args) { A r= new A(); r.C(); r.C(10,20); r.C(11,22.33); } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter