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
What was the political organization of most ancient Greek settlements? A. Greek settlements all fell under the control of the Gr
Fofino [41]
<span> C. Greek settlements belonged to the Confederation of Greece, which elected a leader every four years</span>
7 0
3 years ago
I need help on a French assignment please {NO TRANSLATORS PLS AND LOTS OF POINTS}
insens350 [35]
Hi

The answer to the first question is <span>C. Tu n’aimes pas les shorts verts.

It means "You don't like the green shorts.". 
The reason it is C is that in French when a noun that an adjective describes is plural, the adjective is plural as well. Verts is the correct plural form of green in French. 

The answer to the second question is A. </span><span>Vous aimez le pull étroit.<span> 

It means "You like the narrow sweater.".
The reason it is A is that the noun (<em>pull</em>) is masculine, and it isn't plural. So I picked the masculine adjective that isn't plural.

Hope this helps! :)</span></span>
8 0
4 years ago
Hi Everyone i just wanna say to you all happy new year 2021 <br> Have a sparkling New Year!
Galina-37 [17]
Thanks you too!! :) <3
4 0
3 years ago
Read 2 more answers
Gumawa ng isang tula na nagpapakita ng paggalang o<br>pagpapahalaga sa mga taong maysakit.​
LuckyWell [14K]

Answer:

tratuhin sila nang may paggalang upang ipaalam sa kanila na sila ay pinarangalan dahil sila ay may sakit ngayon ngunit ang sakit ay isang dolyar lamang, maaari mo itong punitin sa kalahati ngunit ang parehong magpakailanman na may isang legacy na nag-iiwan sa amin upang masakop.

In english: treat them with respect to let them know that they are honored because they are sick now but the pain is only a dollar, you can tear it in half but the same forever with a legacy that leaves us to cover.

Explanation:

I hope this helps :)

6 0
3 years ago
What is wrong with this sentence? the weatherman showed an animated character, it was a cloud with lips that blew cold wind.?
Burka [1]
Well, that seems to be a run-on sentence in addition to grammar errors. 



4 0
4 years ago
Other questions:
  • I'm as small as an ant, as big as a whale. I'll approach like a breeze, but can come like a gale. By some I get hit, but all hav
    11·2 answers
  • Which best describes how writers of creative nonfiction often choose their themes?
    11·1 answer
  • Thomas is still feeling beacuse everyone was informed about his low achievement
    6·1 answer
  • HOW DID YOU BRING PEACE TO YOURSELF<br> PlZ DO IT A.S.A.P.
    13·1 answer
  • In your opinion, what was the BEST part of the 2020-2021 school year? What made it the best?
    15·2 answers
  • আমি আর পড়াশোনা করতে পারিনি!!! ​
    8·1 answer
  • How are the ideas in the following two sentences tied together? The best time I had all summer was the night of sherrys party .
    9·2 answers
  • Write difference between City and Village (This question is based on Hindi)
    14·1 answer
  • How does the playing of the organ compare to the activities in the town?
    13·1 answer
  • सब्र का फल मीठा इस विषय पर अधिकतम 100 शब्दो में एक लघुकथा लिखिए​
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!