Assume the following:
class child : public parent
{
public:
fun1(parent * obj);
//somewhere on the child class:
fun2 ()
{
fun1(this::...POINTER TO THE PARENT....); //how can I do such a thing without having to create an object of parent class?
}
};
I am looking for something similar to 'this' pointer that points at the address of the current class. But, is there a "this" kinda thing for referencing a parent class inside a child's class?