Q. Which keyword is used to prevent a class from being inherited in PHP?

  • (A) final
  • (B) static
  • (C) sealed
  • (D) private
πŸ’¬ Discuss
βœ… Correct Answer: (A) final
Explanation: The 'final' keyword prevents a class from being extended.
Explanation by: Rati Dubey
The 'final' keyword prevents a class from being extended.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
47
Total Visits
πŸ“½οΈ
10 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
93%
Success Rate