package MyPrograms; class Overloading{ int x,y; Overloading() { System.out.println("Default condtructor called "); } Overloading(int x){ System.out.println("Paraameterized constructor with one parameter:" + x); } Overloading(int x,int y){ System.out.println("Parameterized constructor with two parameter:" + x + "," + y); } void display() { System.out.println("Method called without prameter"); } void display(int x) { System.out.println("Method called with one parameter called:" + x); } void display(int x,int y ) { System.out.println("Method called with two paameter:" + x +"," + y); } } public class PointType{ public static void main(String args[]) { Overloading obj1=new Overloading(); Overloading obj2=new Overloading(50); Overloading obj3=new Overloading(30,40); Overloading obj=new Overloading(); obj.display(); obj.display(50); obj.display(30,40); } }