public class Foo{ private String a; private int b; public Foo(Foo foo){ this.a = foo.a; this.b = foo.b; } }
Hi eve
This is nonse code. You need instance of class to create instance... How you want to create the first instance of this object at all?