I have Class1 that contains many private inner anonymous classes like:
ClassAInterface var1=new ClassAInterface {
.....
When I inherit Class2 from Class1 is it possible not to inherit all these classes but replace with new? So all methods that used these class variables will use only objects in inherited class. Or exists another way? So I would like inherit methods, logic of work, but don't like inherit data structures. Thanks