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
nasty-shy [4]
2 years ago
15

Which statement in main() generates an error?

Computers and Technology
1 answer:
Sunny_sXe [5.5K]2 years ago
3 0

Answer:

C. leagueName=newPlayers.getLeague(); getLeague() is not a member of Players.

Explanation:

The main method in this code will case an error when trying to run the following line of code...

leagueName=newPlayers.getLeague();

This is because the method getLeague() is being called on a Player object which takes all of its methods from the Player class. Since getLeague() is not a method located in the player class then it cannot be called by an object from that class. Especially since the Player class does not extend to the SoccerPlayers class where the getLeague() method is actually located. Instead, it is the SoccerPlayers class which extends the Players class as its parent class.

You might be interested in
Does two core processors mean that it is twice as fast do you agree? why?
vlabodo [156]

Answer:

the friendships the following link and fill out our related information

Explanation:

consisting of a new one of the cell number of people who want

3 0
2 years ago
Write a family database program. Create a class to represent a person and to store references to the person’s mother, father, an
Gennadij [26K]

Do you go to BASIS?

Sorry I don't have an answer for you, but we have the same assignment in our AP Comp sci class.

Just wondering.

8 0
2 years ago
You should periodically perform basic computer maintenance on your computer.<br> True<br> False
kotegsom [21]

Answer:

that's true after some period of time it's necessary

8 0
2 years ago
Read 2 more answers
if you want to present slides to a fellow student or co workers which productivity software should you use to create them?
Aleonysh [2.5K]

I think a presentation would be the answer.

Hopefully this helps, have a good day.

6 0
2 years ago
Which error produces incorrect results but does not prevent the program from running?
rusak2 [61]
The logic error produces incorrect results but does not prevent the program from running. The other name for the logic error i<span>n computer programming is bug. When present , this type of error does not terminate (crash) the program, but cause the program to operate incorrectly. Bugs are very hard to find in a program. </span>
4 0
3 years ago
Other questions:
  • And what way do you mixed and market economy support the ideals of democracy​
    12·1 answer
  • A(n) ____ instruction might look like a meaningless string of 0s and 1s, but it actually represents specific operations and stor
    9·1 answer
  • What is the best brand of folders
    13·2 answers
  • Certain files, such as the ____ and Security log in Windows, might lose essential network activity records if power is terminate
    9·1 answer
  • What is the output?
    13·1 answer
  • Find what the secret message is. Get Brainliest if you are fast and correct.
    13·2 answers
  • My friend has 200 subs and i have only 36 can you help me its ACYT ZR
    9·2 answers
  • In what ways is the human brain like a computer? In what ways is it different?
    14·2 answers
  • Please help me asapppp!​
    8·2 answers
  • [80 points] Fill in the missing word.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!