I cannot get the reason of the error. Please, help.
class Dog
{
private:
char name[25];
int gender;
int age;
int size;
bool healthy;
public:
char* getName() { return name; }
int getGender() { return gender; }
int getAge() { return age; }
int getSize() { return size; }
bool isHealthy() { return healthy; }
void setHealthy(bool dhealthy) { healthy = dhealthy; }
void setName(char* dname) { name = dname; } // name ---> Expression must be a modifiable value
};