What will be the output of the following PHP code?
class Checkout { final function totalize() { // calculate bill } } class IllegalCheckout extends Checkout { final function totalize() { // change bill calculation } }
A.PHP Fatal error: Class IllegalCheckout may not inherit from final class
B.Value of the bill calculated
C.PHP Fatal error: Cannot find object
D.PHP Fatal error: Cannot override final method
Answers
Answered by
5
______✨ HEY MATE ✨_____
➡️Option (B) is the right answer ✔️
➡️Option (B) is the right answer ✔️
Similar questions
Math,
6 months ago
Physics,
6 months ago
Math,
6 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Biology,
1 year ago
Biology,
1 year ago