Computer Science, asked by sandysri1977, 6 months ago

Which of the following statements is the most appropriate for the private members?
1 point
None of the above.
They can be used in the sub-classes.
They are only visible in the class in which they are declared.
They are visible out of the class in which they are defined​

Answers

Answered by nandinitata
1
None of the above
All the other statements are wrong
Answered by poojan
1

Private members are only visible in the class in which they are declared.

Explanation:

  • Private is one of the keywords in the programming languages that is used as an access modifier.
  • When you declare an object as a private one, it can be accessed only in that class.
  • However, we can access private fields using getter and setter methods.
  • This keyword can be used upon attributes, methods, and constructors.

Learn more:

1. The command button to password protect a document is part of the_______ tab.​

https://brainly.in/question/24099180

2. Tools > ________ deals with equations with multiple unknown variables.

brainly.in/question/20886057

Similar questions