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.

21st Aug 2018, 4:13 PM
Alex Chindriș
1 ответ
0
I guess no
23rd Aug 2018, 5:10 PM
Coder🇮🇳 #21