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



Reply With Quote
Copyright Techfuels
Bookmarks