i was just readin the article:
but something i dont understand about classes is,
why set the data members private and then use set and get functions to read/set these variables?
why not just set them public?
surely it would save on writing alot of code?
im so confused