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
1. Составьте словосочетания из слов левой и правой колонок.
creativ13 [48]

1. производительность труда

2. удовлетворённости жизнью

3. благосостояние населения

4. население страны

5. наличие еды

6. приобретение автомобиля

7. плитка шоколада

8. прилив силы

9. уровень счастья

10. отсутствие друзей

11. тысяча долларов

12. смысл жизни

13. рост благосостояния

6 0
3 years ago
Which of the following would most likely be an entry in a sentence outline?
Alex_Xolod [135]
<span>B. Education can change a person's life.</span>
8 0
2 years ago
Read 2 more answers
What was Frederick douglass last name when he made his escape to freedom
dezoksy [38]
To better conceal his identity from slave catchers, the escaped slave changed his last name from Bailey to Douglass. 
6 0
3 years ago
Read 2 more answers
What does “spectat servus silvās parvās?” mean
sweet [91]

Answer:

Silver looks small servant.

Explanation:

In Latin, <em>Spectat means watches, servus means slave, silvās means silver, and parvas means small.</em>

<em />

Altogether that would be 'watches slave silver small', which doesn't make sense on its own but rearranged it could be translated to <em>"Silver looks small servant."</em>

8 0
2 years ago
Can someone make a short passage FOR MY 2 GRADE COUSIN with these words:(I'll give you BRAINLIEST IF YOU DO THE BEST PASSAGE)
Cerrena [4.2K]

Seeing dinosaurs is diffuclt. First of all , they are extinct also meaning that they perished. Although you can still see their remains Second, dinosaurs are trouble. They are carnivorous. Third, you can't have conversations with them, considering the animal language is the hardest. In conclusion, seeing dinosours is diffuclt because they are extinct, they are trouble, and you cant have a conversation with them.

5 0
3 years ago
Other questions:
  • How to say please stay healthy in japanese?
    9·2 answers
  • Japan entered a period of rapid modernization during what century
    13·2 answers
  • Where does this statement belong the main message is that keeping secrets can hurt those around us
    6·1 answer
  • Ek;cudfehfjekfjkbfsjkfsjkf
    10·1 answer
  • Two less than the product of a number and three Evaluate when f = 4.5.
    5·1 answer
  • Paano malulutas ng diyalogo ang mga suliranin sa komunikasyon<br> at ugnayan ng pamilya?
    13·1 answer
  • List the three conflict management types and explain the<br> differences between them:
    9·2 answers
  • Regionalization in Asia? What good caused the division of Asia to​
    7·1 answer
  • Ey songyeonn<br> Uuuu kihineh v hardu ery?<br> Ema I ge friend request accept kureema dho? Lol
    8·1 answer
  • Who izz Angelica Kenova??<br><br><br><br><br><br><br><br><br><br><img src="https://tex.z-dn.net/?f=%20%5C%3A%20%20%5C%3A%20%20%5
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!