0
Is there any language where you can put classes (not objects) in containers?
This would be useful for things like creating many classes through multiple inheritance with very small amounts of code. For example, you have the classes: A1, A2,...,An B1, B2,...,Bm and you want to create all the possible different classes that inherit from a class in the A group and a class in the B group. With class containers, you could achieve this with two simple loops. Without them, you have to write way more code.
1 ответ
0
I guess no