actually i was trying to implement static data member, in my same previous program i declared roll_num in private now i was just seeking that what if i declare roll_num in public.
kindly guide me in three things
1. if i declare some variable in public access specifier then this variable is a data member or not?
2. i have only used roll number as a static data member what other features of class student can be declared as static data member?
3. u said that "then you should be providing ways to access the elements of the student object in useful and flexible ways, not just provide two member functions that do things that are so specific."
respectfully i did not get u actually