Question:In the sample code given below, which of the data members are accessible from class Y?
class X {
    private int i;
    protected float f;
    public char c;
}

class Y : X { }
 

A c 

B f 

C i 

D All of these 

+ Answer
+ Report
Total Preview: 727

Copyright © 2024. Powered by Intellect Software Ltd