Hello, I want my method of the class to take as an input an array of data type derived from class. How can I do this?
Or when should I define my new data type PlanetType?Code:class Planet { public: // typedef class Planet PlanetType; void GetForce(int, PlanetType []); };
Thanks in advance.