Hi, im currently trying to learn a bit more about C++
i've got some class
Code:
class MyClass
{
bool m_pMemberFunctionValue;
public:
MyClass();
~MyClass();
bool MemberFunctionTest() const;
};
bool MyClass::MemberFunctionTest() const
{
return m_pMemberFunctionValue;
}
bool SomeRemoteFunction()
{
MyClass *pObject;
return pObject->MemberFunctionTest();
}
In this case SomeRemoteFunction should return MyClass::m_pMemberFunctionValue. Now my question...
Is there a way to use my own constructor (MyClass()) if i create a new MyClass *Object?