Consider the following program.
What does this program print?class Ident { int f(int x) { return x; } int g(int x) { return f(f(x)); } } class Square extends Ident { int f(int x) { return x * x; } } class Main { public static void main(String[] args) { Ident a = new Ident(); Ident b = new Square(); Square c = new Square(); System.out.println(a.g(3) + " " + b.g(3) + " " + c.g(3)); } }