Which of the following statements are incorrect?

A public members of class can be accessed by any code in the program
B private members of class can only be accessed by other members of the class
C private members of class can be inherited by a subclass, and become protected members in subclass
D protected members of a class can be inherited by a subclass, and become private members of the subclass

Correct Answer: private members of class can be inherited by a subclass, and become protected members in subclass

private members of a class cannot be inherited by a subclass.

Related Questions

which of the following statements is incorrect?
কার্বন মৌল হীরা ও গ্রাফাইট-এ ভিন্নরূপ। এদের ক্ষেত্রে কোন উক্তিটি সত্য নয়? (Diamond and graphite are the allotropes of carbon. For them. which of the following statements is incorrect?

Next steps