class Program { public static void main(String[] args) { // "instantiate" a new Triangle from the Triangle class Triangle t = new Triangle(3,4); // print out the area System.out.println(t.area()); // the following WILL NOT WORK // because `base` is `private`. // trying commenting it out to see. // System.out.println(t.base) } }