Question: please answare the question C++ language. 40. Provide the definition for a class named Llama. The llama class should have private members for name, age,

please answare the question

C++ language.

please answare the question C++ language. 40. Provide the definition for a

40. Provide the definition for a class named Llama. The llama class should have private members for name, age, times brushed, and whether or not it needs brushing. It should also have the following public members: o A constructor that takes the name and age as parameters, returning nothing. o An updateTimes Brushed method that takes a number of brushings as an argument, and returns an updated number of times brushed o A needsBrushing method that takes no parameters, and returns whether or not the llama needs brushing

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!