Farm Program

I need help making a program using public and private classes. I need to make a farm of five animals using the class Animal and the class has to contain charactaristics about animals i.e. speech or number of legs. So when I run the program it should output a number set to each animal and then it would display the characteristics of the selected animal. Help on how to make the program would be very appreciated!
Create a class (i.e type definition) in global space. Create a private data member for each characteristic. Create a public member function to display this information. Use a constructor to initialize each private data member. In main declare each object (i.e each animal) and then run the member function to display their characteristics. I cannot help you with everything, as I am learning about structs and classes myself right now. But, I believe this is the correct general approach.
Topic archived. No new replies allowed.