how to access a private member function witout using friend or virtual
Code:
hi ppl,,,
i am new to programming,,, pls help me out... i need to access a private member function of a class witout using virtual or friend and i should not alter the class but i can do anything,, pls dont say #define private public ...
try to give some better solution and help me here
eg:
class X
{
void show(){ }
public:
........
};
i need to access that show() function witout modifying the class X
help me out pls
i should not modify the original class
hi thanks for replying,,
my question is that i should not modify the orignal class and inheritance should be avoided
i need to access the private function not the integer inside the class