Here I am immersed in the language of C++ and noted that using the keyword protected for attributes in a class hierarchy is banned because taken out of the data corruption. The standard is to declare all attributes private and set accessories protected if used in subclasses is necessary? If yes why?
Bookmarks