In case of public inheritance in C++, which of the following correctly represents the accessibility of the data variables from derived class?
1
Private variables: No, Protected variables: Yes, Public variables: Yes
2
Private variables: No, Protected variables: No, Public variables: Yes
3
Private variables: No, Protected variables: Yes, Public variables: No
4
Private variables: Yes, Protected variables: No, Public variables: Yes
5
Private variables: No, Protected variables: No, Public variables: No