Ask Question
14 December, 15:58

When is it not necessary to invoke the method myMethod using dot notation? When myMethod is private. When myMethod is invoked by a method in the same class as myMethod. When myMethod is public. When myMethod is both private and static. When myMethod is invoked by a method in a different class than myMethod.

+3
Answers (1)
  1. 14 December, 16:05
    0
    When myMethod is invoked by a method in the same class as myMethod.

    Explanation:

    When you are in a class, it is like a different enviroment and within that class you can call a method without using the dot notation because you are still within the class.

    Outside the class and despite the type of method, public, private or static, the dot notation will be required.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “When is it not necessary to invoke the method myMethod using dot notation? When myMethod is private. When myMethod is invoked by a method ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers