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]
3 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]3 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
How do you say “i’m fifteen years old this year” in chinese (characters pls)
Katen [24]

Answer:

我今年十五岁

Explanation:

3 0
3 years ago
Read 2 more answers
A frase "por que não foste ao parque quando eu te pedi?" está correta? (Uso de "te", "lhe", "lho", etc)
faltersainse [42]

Answer:te

Explanation:

4 0
2 years ago
Which word in the sentence is an example of a tone signal? The only way to garner support for the candidate is by knocking on do
Vaselesa [24]

A : knocking because its a neutral tone

3 0
3 years ago
Read 2 more answers
Read the paragraph. 1My sister dreams of becoming the White House chef someday. 2She is working energetically to achieve this go
Gwar [14]

Answer:

The paragraph uses past-, present-, and future-tense verbs. It contains four infinitives.

5 0
3 years ago
Read 2 more answers
How do you introduce yourself in japanese?
lorasvet [3.4K]
What the other person said :)
6 0
2 years ago
Read 2 more answers
Other questions:
  • "Sciene has not yet taught us if madness is or is not the sublimity of the intelligence."
    11·2 answers
  • Need a sentence using risk and wages in the same sentence
    14·1 answer
  • How were the Japanese scientist able to find a giant squid
    6·2 answers
  • Bakit madaling maging tao mahirap magpakatao?
    10·1 answer
  • Read the first sentences in Dorthea’s personal narrative. 1. Jamie and Jeremy are my next door neighbors. 2. They are brother an
    13·2 answers
  • Help me please<br><br> How does the scarament of marriage link to the past, present, and future.
    7·1 answer
  • Estou solteiro, estou tomado ... um amor tão poderoso, estou tremendo, por um amor tão divino, podemos sobreviver a esse tempo?
    8·1 answer
  • CARA<br>MENJADI<br>MUKMIN<br>YANG<br>BERTAQWA​
    7·1 answer
  • What is the best Latin translation for "I dedicated"?
    5·1 answer
  • What is the most difficult language in the world? And why it is difficult?
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!