Embed presentation
Download to read offline


The document defines a Java class named 'rectangle' with attributes for height, width, and color, along with methods to set these properties, calculate area and perimeter, and print the color. It includes constructors for initializing a rectangle with specific dimensions or default values. Additionally, there is a demo class titled 'rectangledemo' that encapsulates this rectangle class.

