How to access internal Method?

A method of a class can access?

  • Only the public instance variables of its class b. Only the private instance variables of the class c. Only the local variables the method defines d. Both public and private instance variables of the class and the method's local variables

  • Answer:

    d. No variables in a class can be hidden from its methods. Not having access would defeat the purpose of the variables. It would be like a car not being able to do stuff based on the colour of its paint.

JayDave at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

d

James Bond

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.