i have 1 class:
class class1
{
void Created();
calss1()
{
Created();
}
} class1;
void class1::Created()
{
cout << "hello";
}
imagine that i don't write:
void class1::Created()
{
cout << "hello";
}
i get an error. i try these too:
class class1
{
void Created()
{
//do nothing
}
calss1()
{
Created();
}
} class1;
void class1::Created()
{
cout << "hello";
}
i get error too :(
what i want is the class have the Created() function without nothing and can be changed outside of class. can anyone advice me?
(if the question is confuse, please tell me)