Knowee
Questions
Features
Study Tools

The access specifier which allows one to access data by other classes but not from outside objects?Options: Pick one correct answer from belowPrivateProtectedPublicBoth protected and public

Question

The access specifier which allows one to access data by other classes but not from outside objects?Options: Pick one correct answer from belowPrivateProtectedPublicBoth protected and public

🧐 Not the exact question you are looking for?Go ask a question

Solution

The correct answer is "Protected". This access specifier allows one to access data by other classes but not from outside objects.

Similar Questions

Which access specifier is usually used for data members of a class?a) Protectedb) Privatec) Publicd) Default

Which of these access specifiers can be used for a class so that its members can be accessed by a different class in the different package?OptionsProtectedPublicPrivateNo Modifier

Which of this access specifies can be used for a class so that its members can be accessed by a different class in the same package? b) Protecteda) Publicd) All of the mentionedc) No Modifier

Which access modifier allows member access only within the same class and its subclasses?a.publicb.protectedc.defaultd.private

What is not an Access Modifier?PublicPrivacyPrivateProtected

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.