Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

contrast public, private and protected inheritance. Solution public-->inherite t

ID: 3645392 • Letter: C

Question

contrast public, private and protected inheritance.

Explanation / Answer

public-->inherite the protected members as preotected in drived class and pubic members wiull be public in derived class protected--->pubic and protecated members of the base class will become protected in derived class Private-->pubilc and proteacted members will become private in derived class public: class members are access from the outside the class private: class members can access only within the class protected:class members can access inside the same package