class RedBus { void Payment() { System.out.println(" Inside m1 Parent"); } void Payment(int card) { System.out.println("Inside m1 card"); } void Payment(String upi) { System.out.println("Inside m1 string"); } void Payment(String netUN, String netPluse) { System.out.println("Inside m1 2 string"); } public static void main(String[] args) { RedBus d = new RedBus(); d.Payment("20","fg"); } }
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