Q. Which of the following statements is correct?

  • (A) Public method is accessible to all other classes in the hierarchy
  • (B) Public method is accessible only to subclasses of its parent class
  • (C) Public method can only be called by object of its class.
  • (D) Public method can be accessed by calling object of the public class.
πŸ’¬ Discuss
βœ… Correct Answer: (A) Public method is accessible to all other classes in the hierarchy

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
280
Total Visits
πŸ“½οΈ
5 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
86%
Success Rate