zainaamir087
zainaamir087 zainaamir087
  • 28-04-2021
  • Computers and Technology
contestada

When should we not use Inheritance in programming?

Respuesta :

wluo329
wluo329 wluo329
  • 28-04-2021

Answer:

You shouldn't be using inheritance if your program doesn't reuse code a lot.

Explanation:

This is really the purpose of inheritance, to make it easier for us to call repeated method calls without having to copy and paste all the time and making our program long and redundant.  If you have simple programs that don't have repeated calls, then inheritance is unnecessary.

Answer Link

Otras preguntas

Did Benjamin agree with Napoleon or Snowball?
Is Tom and Huck OK for kids?
How did the WPA help people during the Great Depression?
Read the following statement and the answer question. Buy Sugar Pop cereal and enter to win a new SmartPhone! Which fallacy is used in this statement? O arguing
What is Twain satirizing in Chapter 21?
How was child labor addressed in the 1900s?
What I Have LearnedAnswer the following:a. Express each of the following statements as amathematical equation. 1. Atmospheric pressure (P) varies inversely as t
02.06 A Tragic End Literary Element Act I Act II Act III Act IV Act V Archetypes A common type of character, conflict, or plot seen in literature Scene: Explan
What are the benefits of keeping your money in the bank in a checking and or savings account?
What is market economy in economics?