World Languages, asked by vishnunama7798, 1 year ago

Valentine, Holiday, and Birthday inherit from the class Card. In order for the following code to be correct, what type must the reference variable card be? card = new Valentine( "A", 14 ) ; card.greeting(); card = new Holiday( "B" ) ; card.greeting(); card = new Birthday( "C", 12 ) ; card.greeting();

Answers

Answered by sciencecrazy
4
what do you mean to say by this question?.
Answered by targettech
0

Answer:

CARD

Explanation:

Idk bro

Similar questions