#include <iostream>
usingnamespace std;
class Tool {
public: int strength;
char type[]; // Variable i want to change in the certain class
};
class Scissors : public Tool {
public: Scissors(int strength, char type);
//static const char *type;
public: bool fight(Tool enemy){
returntrue;
};
};
//const char *Scissors::type = "Scissor";
Scissors::Scissors(int strengthparam){
strength = strengthparam;
// tried to change the char type[] here but without success :(
}
int main(void)
{
// Example main function
Scissors s1(6);
cout << s1.type << endl; // not sure if this is the right way to call the type cause its defined in the Tool class
return 0;
}