Well done!
You have completed Advanced Concepts in Object-Oriented Programming: Overriding, Inheritance, and Polymorphism Quiz!
Quiz Question 1 of 5
Given the following class hierarchy:
`class Tax: def calc_tax(self): return 0.10
class ContractTax(Tax): def calc_tax(self): return super().calc_tax() + 0.05
class SpecialTax(ContractTax): def calc_tax(self): return super().calc_tax() * 2`
What would be the result of calling calc_tax()
on an instance of SpecialTax
?
Choose the correct answer below: