Will the following code fragment compile?
class fullEmpty { };
class iClass: fullEmpty {
public:
    int iPublicVariable;
private:
    float iPrivateVariable;
protected:
    int iProtectedVariable;
public:
    double iPublicVariableToo;
};

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback