Q. In method overloading, can methods have the same name and the same parameter types if their access modifiers are different?

  • (A) Yes, but only for static methods
  • (B) No, it is not allowed
  • (C) No, the methods must have different parameter types
  • (D) None of These
πŸ’¬ Discuss
βœ… Correct Answer: (B) No, it is not allowed

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
242
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Ram Avtar Sharma
Publisher
πŸ“ˆ
82%
Success Rate