Hi Guys :)
I am trying to initialize a public data member of a base class (Animal class in my example) from a derived class (Cat class in my example) using initialization list as I have read that "all the public members of base class are inherited by the derived class". Then
1) why the initialization using initialization list in derived class fails if the data member is inherited by the derived class.
2) Why the same passes when we use assignment instead of initialization list.