When deriving a class from a public base class,public members of the base class become public members of the derived class and protected members of the base class become protected members of the derived class. A base class's private members are never accessible directly from a derived class, but can be accessed through calls to the public and protected members of the base class.
Hence,Option(D)Public and protected data of A and B and all data of C.