Given the classes below, what will be returned if the following main method is called?
A. 25.25
B. 30.75
C. compiler error due to a CottonPillow object created in place of a Pillow object
D. compiler error due to CottonPillow not having a getActualCost() method
Answer:A
Given the classes below, what will be returned if the following main method is called?
A. 25.25 B. 30.75 C. compiler error due to a CottonPillow object created in place of a Pillow object D. compiler error due to CottonPillow not having a getActualCost() method