Input
Output
public class Parameterizedconstructor { public static void main(String args[]){ Rectangle r1=new Rectangle(5,6); } } class Rectangle { int length,breadth; float area; Rectangle(int length,int breadth) //parameterized constructor { System.out.println("Enter the length and breadth value: "+length+" "+breadth); area= length * breadth; System.out.println("Area of the Rectangle: "+area); } }