Hi guys, I had created a base class and its derived class, and Both the base class have a virtual function, say hi(). The base class is pretty much pure. Now I declared a pointer of the the base class, and created a derived class object with the pointer. I tried to call hi(), but Visual C++ gave me some funny errors:
d:\cryptography\crypter\crypter\crypter.cpp(149) : error C2248: 'BaseClass::Hi' : cannot access private member declared in class 'BaseClass'
d:\cryptography\crypter\crypter\crypter.h(45) : see declaration of 'BaseClass::Hi'
d:\cryptography\crypter\crypter\crypter.h(41) : see declaration of 'BaseClass
can someone please help me?'