Java program for methods Overloading on November 13, 2021 Get link Facebook X Pinterest Email Other Apps class Overloading{ void disp(char c) { System.out.println(c); } void disp(char c, int num) { System.out.println(c+" "+num); } public static void main(String[] args) { Overloading obj = new Overloading(); obj.disp('G'); obj.disp('a',19); }}OUTPUT Comments
Comments
Post a Comment