public class Bird
{
beakStrength = input;
}
public void setBeakStrength(int strength)
{
beakStrength = strength;
}
}
public class Hawk extends Bird
{
private int talonStrength;
public Hawk(int talon, int beak)
{
super(beak);
talonStrength = talon;
}
}
The following statement appears in a method in another class.
Bird b = new Hawk(5,8);
Which of the following best describes the effect of executing the statement?​

Respuesta :

Answer:

Answer below.

Explanation:

You are creating an object of bird "b" with a talon strength of 5 and a beak of 5.

public Hawk(int talon, int beak)

{

super(beak);

talonStrength = talon;

}

Please mark brainliest if this is the answer you were looking for

Please mark brainliest if this is the answer you were looking for

In this exercise we have to use the knowledge of computational language in python to write the code.

We have the code in the attached image.

The code in python can be found as:

public Hawk(int talon, int beak)

{

super(beak);

talonStrength = talon;

}

See more about python at brainly.com/question/26104476

Ver imagen lhmarianateixeira