Structs vs. Classes
But, doesn’t this violate data hiding?
no!
think about what code can access this data? You
would have to have the ‘array’ of students, or the
‘head’ pointer to the first node containing a student
to actually access the data
certainly, the client can “see” the structure, but they
can’t access the data if properly hidden within the
class!