1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
slamgirl [31]
4 years ago
14

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();
World Languages
1 answer:
madam [21]4 years ago
4 0

Answer:The variable card must be of type Card

Explanation:The reference has to be of the same type of the class. In this case, there are many diferent classes and the common one is Card, as all inherit from it.

You might be interested in
Can u tell me what swift rushing mean
insens350 [35]
Swift means quit or fast rushing means dash or in a hurry
5 0
4 years ago
Observe this sentences:”they are protected so that people can enjoy them”wat is the function of “so that”? What other expression
garri49 [273]

Answer:

MrBeast

Explanation:

5 0
3 years ago
Does chicken have more protein than carrots
kompoz [17]
Yes Chicken Has more Protein Than Carrots
8 0
4 years ago
Read 2 more answers
Ujjwal sandhi viched​
Brut [27]

Answer:

??????????

??????????

Explanation:

?????????

5 0
3 years ago
െുെന്‍പിള്ളൊന്‍അചനവഷിച്ചുനെന്നആത്മീയഗുരുവികന െകണ്ടത്തിയെ്<br> എങ്ങകന?
dedylja [7]

Answer:

what the heck is all that

Explanation:

it looks like scipple to me sorry is it an other lang

5 0
3 years ago
Other questions:
  • But as for those prophetic oracles,
    10·1 answer
  • Why does the radley place fasinate scout jem and dill? in the book how to kill a mocking bird
    8·1 answer
  • I need help on a Spanish Assignment asap {LOTS OF POINTS WILL BE REWARDED}
    8·1 answer
  • What prefix means listen?
    11·1 answer
  • Create clue of the four legs of the race that will direct the contestants to the next challenge?
    10·1 answer
  • Is the subject complement in the sentence a noun, pronoun, or adjective? The grandfather clock in the attic has been silent for
    15·1 answer
  • Why should we stand up to bullying? ( answer in 6 sentences)
    11·1 answer
  • Read lines 7-9: Identify if the statement is a fact or an opinion. Explain your answer.
    11·1 answer
  • After visiting the place it was filmed, the movie is sure to be great. What confusion does the dangling modifier cause in the se
    13·2 answers
  • In a group discussion,
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!