单选题

在哪种派生方式中,派生类可以访问基类中的protected成员?()

Apublic和private

Bpublic和protected

Cprotected和private

D仅protected

正确答案

来源:www.examk.com

答案解析