Multiple Choice
Which of the following statements a) , b) or c) is false?
A) With inheritance, every object of a subclass also may be treated as an object of that subclass's base class.
B) We can take advantage of this xe ""derived-class-object-is-a-base-class-object" relationship[derived class object is a base class object relationship]""subclass-object-is-a-base-class-object" relationship to place objects related through inheritance into a xe "list of base-class objects"list, then iterate through the list and treat each element as a base-class object.
C) The following code places CommissionEmployee and SalariedCommissionEmployee objects (c and s) in a list, then for each element displays its string representation and earnings-this is an example of xe "polymorphism"polymorphism:
In [21]: employees = [c, s]
In [22]: for employee in employees:
) ..: print(employee)
) ..: print(f'{employee.earnings() :,.2f}\n')
) ..:
CommissionEmployee: Sue Jones
Social security number: 333-33-3333
Gross sales: 20000.00
Commission rate: 0.10
2,000.00
SalariedCommissionEmployee: Bob Lewis
Social security number: 444-44-4444
Gross sales: 10000.00
Commission rate: 0.05
Base salary: 1000.00
1,500.00
D) All of the above statements are true.
Correct Answer:

Verified
Correct Answer:
Verified
Q23: Which of the following statements a), b)
Q24: Consider the following loop, which processes a
Q25: Which of the following statements is false?<br>A)
Q26: Which of the following statements is false?<br>A)
Q27: Which of the following statements a), b)
Q29: Each new class you create becomes a
Q30: Which of the following statements is false?<br>A)
Q31: Which of the following statements is false?<br>A)
Q32: Which of the following statements is false?<br>A)
Q33: Class Time's properties and methods define the