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
Выпишите из текста три примера, разных типов сказуемого.
alisha [4.7K]
Chbzing sh jigsaw bcnvdybft
8 0
3 years ago
1. Your best friend is the valedictorian and has been asked to give a speech at the graduation ceremony. Which method of deliver
Ilia_Sergeevich [38]

1) manuscript

----

2) impromptu, extemporaneous, manuscript, memorized

-----

3) memorized

----

4) extemporaneous

3 0
3 years ago
Passando a bola. O texto a seguir é a introdução de um conto do escritor moçambicano Mia couto. Leia-o e dê continuidade á narra
Lisa [10]
<span> Leia-o e dê continuidade á narrativa, apresentando um conflito, desenvolvendo-o, levando as ações ao clímax e criando um desfecho. Crie fatos e personagens . </span>
3 0
3 years ago
Generousity matters say the golden rule for 20 points
nikitadnepr [17]

Answer:

yesss <3

Explanation:

treat others the way you would want to be treated.

seriously people need to actually apply this to life. its not hard to spread positivity.

5 0
3 years ago
Read 2 more answers
What happens to the temperature of a substance while it is changing state?explain
Eddi Din [679]

These energy exchanges are not changes in kinetic energy. They are changes in bonding energy between the molecules. "If heat is coming into a substance during a phase change, then this energy is used to break the bonds between the molecules of the substance. The example we will use here is ice melting into water

5 0
3 years ago
Other questions:
  • Main element of al quran message
    15·1 answer
  • How do the properties and location of callisto differ from those of the other galilean moons?
    5·1 answer
  • Most people do not report abuse why two reasons
    12·2 answers
  • But when the frames of poles were made into tepees by being covered with cloth and skins, White Fang was astounded. It was the c
    14·2 answers
  • How do you describe "Palm Orientation"? The direction your palm is facing The size of your palm The direction you look in when s
    12·1 answer
  • PLEZZ HELP!!
    13·2 answers
  • Im brode here you coins im tiana by the way
    7·1 answer
  • Which came first: the chicken or the egg? Why do you think this?
    9·2 answers
  • Im giving points out all night so stay tune! -_-
    6·2 answers
  • Explain how a commitment to a decision could assist a school leaver to adapt to change of entrepreneurship
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!