B. D protected modifier allows access by derived classes as well as classes in the same package. private prevents any access from another class. default access allows only access within the same package.