Yes. Yes it is valid. Every instance of the Foo class will have a field called b1 which has a new Bar instance.
1
solved Object instantiation and assignment in a class [closed]
Yes. Yes it is valid. Every instance of the Foo class will have a field called b1 which has a new Bar instance.
1
solved Object instantiation and assignment in a class [closed]