public class A{ Integer a=2 } public class B{ Integer b=3+new CB().cb } private class CB{ Integer cb=2 } assert new A().a+new B().b==7
Yes, you can put them all in one file and just use them the way you want in your main task ... or what do you mean by "conditions"?
source share