From the following code, protected member is f1 is accessible in All Questions › Category: Cpp Language › From the following code, protected member is f1 is accessible in 0 Vote Up Vote Down Anonymous asked 3 years ago class X { protected: void f1() { }; class Y: public X {}; class Z: public Y{}; class P{}; void test() { } Options: X, Y, Z, & P X, Y, Z, P, & test X, Y, Z only X only