Image

Imagetimv wrote in Imagecpp

I feel like an idiot asking this...but...

Can I access b.x() without a type cast? Do I have to declare the A and/or B classes differently? I can't remember! grrrr...

class A
{
     void x();
}

class B : public A
{
     void x(int y);
}

void main()
{
     B b;
     b.x(); //can this be done somehow?
}