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
Green plants are called.................... since they synthesis their own food​
vladimir2022 [97]

Answer:

they are also called autotrops

Explanation:

3 0
2 years ago
Read 2 more answers
Top 20 most spoken languages in world
arlik [135]
Chinese spanish english hindi arabic portuguese bengali russian japanese lahnda javanese german korean french telugu marathi turkish tamil vietnamese 
urdu


rate plz and thx
3 0
3 years ago
Read 2 more answers
कोरोना की रोकथाम के लिए एक नारे की रचना कीजिए l
Snowcat [4.5K]

Answer:

Create a slogan to prevent corona.

Explanation:

Stay away from Arizona if you don't want corona

4 0
3 years ago
write the English meaning of the following words: Magnus, Ager+cultus, liver, manus+fact us, captives, exclaim, femina, septem,
Nostrana [21]

Answer:

nglish meaning of the following words: Magnus, Ager+cultus, liver, manus+fact us, cap

Explanation:

write the English meaning of the following words: Magnus, Ager+cultus, liver, manus+fact us, captives, exclaim, femina, septem, contra and satis.​

6 0
3 years ago
A major rule in using coordination is that a writer must coordinate sentence elements of _____.
ohaa [14]

Answer:

2. the same grammatical type

4 0
2 years ago
Other questions:
  • Help me please !!!!!!!!!!!
    8·2 answers
  • Look at the sample writing prompt below: Think about your favorite restaurant and why you like it so much. Write an essay to con
    5·1 answer
  • WILL GIVE 5 STARS!!!! HELP ASAP!!!!
    12·1 answer
  • If a dependent clause comes before an independent clause, which type of punctuation is required?
    5·2 answers
  • Which sentence has an error in parallel structure?
    7·2 answers
  • 1
    6·1 answer
  • Ilan ang tiyak na bilang ng pantig na may limang taludtod ang tradisyonal na tanka
    12·1 answer
  • Hi, I love yall... wyd ? im 14
    6·2 answers
  • Тяжело убить PUT THIS IN ENGLISH
    13·1 answer
  • Aaja mood lastai kharab xa yo mcc pass bhaye ra​ <br>kasto rish uthe xa<br><br>ani ka hò timi?
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!