Question:Consider the sample code given below and answer the question that follows.
class X {
  int   i;

protected:
  float f;

public:
  char  c;
};

class Y : private X { };
Referring to the sample code above, which of the following data members of X are accessible from class Y 

A c 

B f 

C i 

D none 

+ Answer
+ Report
Total Preview: 9289

Copyright © 2024. Powered by Intellect Software Ltd