ghje2871 ghje2871
  • 07-02-2024
  • Computers and Technology
contestada

Let's say there is a class called Student that extends Person and we write:
Student s = new Student();
Person p = s;
//Person has instances such as name and ID
//Student has instances such as year and GPA
which of these objects will we be able to access if we use p?

Respuesta :

Otras preguntas

What is 5 3/4 times 2/6? I am doing math homework and need help
In what form is the energy that is absorbed by plants' leaves?
You're conducting a physics experiment on another planet. You drop a rock from a height of 2.3 m and it hits the ground 1.1 seconds later. What is the accelerat
How many atoms of carbon are in 24 grams of carbon? a) 1.2 x 10²⁴ atoms b) 1.7 x 10²⁶ atoms c) 1.2 x 10²⁵ atoms d) 3.0 x 10²⁴ atoms e) 3.0 x 10²³ atoms Can anyo
What should the last paragraph of a cover letter include?
seven tenths is_________pieces of the whole
A squirrel sitting on the ground starts to run with an acceleration of 5.1 m/s 2. How fast is the squirrel going after 0.25 seconds? A. 20.4 m/s B. 1.28 m/s C.
Most of the newspaper (was,were) placed in the recycling can.
how do i graph the parabolas y = 1/32x^2
what belief system did the song dynasty believe in?  i need help