Can a class variable be any type?


#1

Question

Can a class variable be any data type?

Answer

Yes, a class variable can be any defined data type including instances of other classes.