Ok is there any why i can call the base class this pointer or object from with in a derived class? Example:
class BASE
{
public:
BASE () {}
BASE(BASE & b){}
virtual ~BASE () {}
virtual void Method(){cout << "BASE::Method called"; return; }
};
class DERIVED: public BASE
{
public:
DERIVED() {}
DERIVED (DERIVED & D){}
~DERIVED()
void Method() { cout << "Derived::Method called"; return; }
};
int main()
{
DERIVED derive;
BASE * base = NULL;
base = new DERIVED(deriveObj);
base ->Method();
}
so within tha derived class i would have a function like
trysomething()
{
BASE::BASE(BASE::this);
}
????