Analyze the following code:

public class Test {
public static void main(String[] args) {
A a = new A();
a.print();
}
}

class A {
String s;

A(String newS) {
s = newS;
}

void print() {
System.out.println(s);
}
}