Classes attribute merging