In order to restrict a variable of a class from inheriting to subclass, how variable should be declared?
In order to restrict a variable of a class from inheriting to subclass, how variable should be declared? Correct Answer Private
By declaring variable private, the variable will not be available in inherited to subclass.