C++ simple question about private and protected in classes?

class Vehicle
{
private:
int Age; //The age of the vehicle

protected:
float Price; //The price of the vehicle

In class Vehicle, data member Age is private, while data member Price is protected. Is there any difference between these two data members in terms of information hiding ? Why ?
Derived classes can access protected members of base classes but not private members.
Topic archived. No new replies allowed.