i guess i already understand what you said. thanks!
And furthermore questions.
A.h
Code:
Public:
COLORREF m_dlgColor;
// declare the member at head file.
A.cpp
[code]
class ObjectA {
public:
int m_intA;
// Q1, What's the different Or reason, if i declare member of "m_dlgColor" here ?
void bob_functionA(void);
};
B.h
Code:
Public:
COLORREF m_dlgColorObjectB;
B.cpp
Code:
class ObjectB {
public:
int m_intB;
void bob_functionB(void);
{
// Q2: try to initialization Or Asign value via the following statement ?
m_dlgColorObjectB = ObjectA.m_dlgColor
}
};
Q3. Does the bob_functionB() Could be filled outside of Class ObjectB? What's the different between fill the member function inside the class or outside of the class?
:-)