πŸ“Š PHP
Q. What does the keyword 'final' mean in a class method?
  • (A) The method cannot be overridden
  • (B) The method is optional
  • (C) The method is abstract
  • (D) The method must return a value
πŸ’¬ Discuss
βœ… Correct Answer: (A) The method cannot be overridden

Explanation: The final keyword prevents the method from being overridden in subclasses.

Explanation by: Rati Dubey
The final keyword prevents the method from being overridden in subclasses.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
46
Total Visits
πŸ“½οΈ
6 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
98%
Success Rate