/**
 * Embellish the interface class with derived classes
 */

public class Triangle extends Shape {
    private int rows;

    public Triangle(int rows){
        this.rows = rows;
    }

    public void colorShape(){
        System.out.print("The triangle color is ");
        colorImplementor.fillColor();
        for (int i = 0; i < rows; i++)
        {
            for (int j = 0; j < i + 1; j++)
            {

                System.out.print(".   ");

            }
            System.out.print("\n\n\n");

        }
    }

}
