A similar question has already been asked in stackoverflow regarding Java. But C ++ does not behave exactly like Java, and, in particular, C ++ does not allow access to the protected members of the class "... from another package ...".
So, what is the rationale for the protected members inside the class to be marked as final? Is a convenient way for a developer to quickly switch a class from final to non-final (if the design change)?
source
share