Q:

Which function among the following can’t be accessed outside the class in java in same package?

0

Which function among the following can’t be accessed outside the class in java in same package?


  1. public void show()
  2. void show()
  3. protected show()
  4. static void show()

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (c).protected show()

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING MEMBER FUNCTIONS MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
If private members are to be called outside the cl... >>
<< Private member functions ____________...