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
tatuchka [14]
3 years ago
8

A class can inherit behavior from a parent but also define its own and override parent behavior. This is called:

Computers and Technology
1 answer:
masha68 [24]3 years ago
3 0

Answer:

Method overriding.

Explanation:

In object-oriented programming (OOP) language, an object class represents the superclass of every other classes when using a programming language such as Java. The superclass is more or less like a general class in an inheritance hierarchy. Thus, a subclass can inherit the variables or methods of the superclass.

Basically, all instance variables that have been used or declared in any superclass would be present in its subclass object.

A class can inherit behavior from a parent but also define its own and override parent behavior. This is called method overriding.

Method overriding occurs when there are two (2) methods with the same method parameter and name. The parent class handles one of the methods while the other is in the child class.

Hence, method overriding allows a child class to define its own specific implementation of a method and override parent behavior.

You might be interested in
How much can a INIVDA 1050 TI take? (FPS wise)
mafiozo [28]

Answer:

At full graphics (ultra settings, full HD resolution), tests can range from 60-65 fps, 65.5 fps being the max.

Explanation:

You can benchmark graphics cards using in-game stress tests/benchmark tests or using a separate benchmarking software.

NVIDIA 1050 Ti's are now slightly outdated. Nevertheless, it is now significantly cheaper.

3 0
3 years ago
Please help!!!!<br> Data means only facts. <br> A. TRUE B. FALSE
vredina [299]
B false data does not only have to be facts
6 0
3 years ago
When enter a function or formula in a cell, which is the character you must type?
vladimir1956 [14]
The answer is A. For instance, to use the sum function, you would need to =SUM()
7 0
4 years ago
Pls help its not school work i just need this fixed
Bingel [31]

Answer:

This just means that you have no file in your computer named 'Requirments' hence it is not able to retrieve any data from there.

6 0
2 years ago
A programmer wants to write a procedure that calculates the net elevation - total number of feet a traveler goes up and down. Fo
ch4aika [34]

Answer:

Pseudocode

////////////////////////////////////////////////////////////////////////////////////////////////////////////

Integer netElevation(list of elements of type elevation - type and number)

<em>function open</em>

   Define running total = 0

   for each element from list

   <em>loop open</em>

       elevation type = element[i].type

      if (elevation type == Up)

           running total = running total + element[i].number

       else

           running total = running total - element[i].number

   <em>loop close</em>

   return running total

<em>function close</em>

3 0
3 years ago
Other questions:
  • Computers in a medical office should be protected by which of the following security tools?
    11·2 answers
  • So lets see what you know...Write me a short code and include a detailed explanation of the language used and what the out come
    7·1 answer
  • Which process best describes how you might prepare to apply for a job?
    10·2 answers
  • URGENT HELP PLEASE
    13·1 answer
  • ___operating space means there is a restriction to the drivers line of sight
    10·1 answer
  • Given positive integer num_insects, write a while loop that prints that number doubled up to, but without exceeding 100. Follow
    6·1 answer
  • 54 points!!! Cyber security
    14·1 answer
  • Select three advantages of cloud computing.
    12·1 answer
  • A list cannot use appendleft but a _____ can.
    11·1 answer
  • Your child has broken the RJ-45 port of your laptop by sticking clay into it and there are no wireless networks available in you
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!