package modern.challenge;

public class Main {

    public static void drawTriangle(Triangle t) {

        // if (t instanceof Quadrilateral) { // the compiler is aware that 't' cannot be a Quadrilateral
        //    System.out.println("This is not a triangle");
        //} else {
            System.out.println("Drawing a triangle");
        //}
    }

    public static void main(String[] args) {}
}
