πŸ“Š JAVA
Q. What is the purpose of method hiding in Java?
  • (A) Creating a static method with the same name as a superclass method
  • (B) Redefining a method with a different return type in a subclass
  • (C) Making a method private in a subclass
  • (D) Defining a new method with the same name in a subclass
πŸ’¬ Discuss
βœ… Correct Answer: (A) Creating a static method with the same name as a superclass method

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
75
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Sonali Mishra
Publisher
πŸ“ˆ
96%
Success Rate