213k views
4 votes
When one method calls another, which of the following statements are true? The class methods and instance methods of one class may call the public class methods of another class using dot notation and referencing the name of the other class. The class methods and instance methods of one class may call the private instance methods of another class by using dot notation to invoke the method on an instance of the other class. The instance methods of a class may call, without using dot notation, any class method of the same class.

1 Answer

2 votes

Answer:

All the 3 statements are true.

Step-by-step explanation:

1. The class methods and instance methods of one class may call the public class methods of another class using dot notation and referencing the name of the other class.

2. The class methods and instance methods of one class may call the private instance methods of another class by using dot notation to invoke the method on an instance of the other class.

3. The instance methods of a class may call, without using dot notation, any class method of the same class.

All the above mentioned statements are true.

User Alexander Li
by
4.1k points