Here is the code:
class Derived : public Base
If in Derived:erived(), initilize the data member as below:
I got compiler errors. Anyone knows the rule here? m_data1, and m_score are derived class data member, why am I not allowed to initilize like this?
Thanks for reply.