Hey Gretty, your program containing that class won't compile for these reasons:
-
void attributes(int, string, string);
-> where is the code for that function? -
dog.attributes(2,jim,kkjkjk);
,
you probably meant:dog.attributes(2,[B]"[/B]jim[B]"[/B],[B]"[/B]kkjkjk[B]"[/B]);
-> notice the quotes.If you write it without quotes, then the compiler assumes that jim and kkjkjk are variables/instances of the string class.
But I'm pretty much sure that you meant to wrap it between quotes :)