Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
For example, by inheriting your classes from one base class, you make a vector for this base class, respectively. Then you can put an object of any class inherited from the base one into it.
In c# and java in general, all classes are inherited from the base class Object, so you can put an object of any class in a container for Object. Whether there is such a standard base class in the pros, unfortunately I can’t say, I’m not strong in c ++. But you can make your own.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question