πŸ“Š PHP
Q. Which of the following is true about static methods in PHP?
  • (A) They can be called without creating an object
  • (B) They belong to the class, not to any object
  • (C) They are declared using the 'static' keyword
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the above

Explanation: Static methods are part of the class, use the 'static' keyword, and can be called without an instance.

Explanation by: Rati Dubey
Static methods are part of the class, use the 'static' keyword, and can be called without an instance.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
26
Total Visits
πŸ“½οΈ
3 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
82%
Success Rate