G
Greg
class a
{
public:
int x;
private:
int y;
}
class b : public a
{
public:
void b::somemethod()
}
void b::somemethod()
{
y = 20; // <- compiler error, what? no, the mind of man is surely
not this twisted
}
I was expecting b to have everything a has and "somemethod"
WTF ?
{
public:
int x;
private:
int y;
}
class b : public a
{
public:
void b::somemethod()
}
void b::somemethod()
{
y = 20; // <- compiler error, what? no, the mind of man is surely
not this twisted
}
I was expecting b to have everything a has and "somemethod"
WTF ?