When should we not use Inheritance in programming?

Answers

Answer 1

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.


Related Questions

PLTW activity 2.1.5 PLEASE HELP I NEED STEP 5
FAKE ANSWER WILL NOT BE GIVEN POINTS

Answers

Answer:

Computing is any goal-oriented activity requiring, benefiting from, or creating computing machinery. It includes the study and experimentation of algorithmic processes and development of both hardware and software. It has scientific, engineering, mathematical, technological and social aspects.

Hope it helps u

I need help getting earbuds please help

My mom wants reasons to get wireless earbuds and i'm out.

I need someone to give me some good things about wireless earbuds and bad things about wired earbuds.
(and i got in truble with bluetooth headphones)

Answers

Answer:

Wireless earbuds are a lot harder to break.

Explanation:

Normally if something goes wrong with wired earbuds/headphones it's due to the cord. Wired earbuds can break more easily and can possibly break off in the headphone jack (which is not fun to deal with, believe me. I had to deal with it a few weeks ago). Furthermore, wireless earbuds can't get tangled because they don't have a cord. Wired earbuds cords tend to get tangled and it's a pain to fix it every time it happens. Good luck getting your earbuds.

well im going to play devil's advocate here

reasons why you should not get wired earbuds they produce more greenhouse gas not just to make them but they take constant power and Bluetooth so this causes more greenhouse gas

you may think you need to replace them less but when you factor in the outright cost you still pay more

Hope this helped

-scav

1. Samantha uses the RSA signature scheme with primes p = 541 and q = 1223 and public verification exponent e = 159853. (a) What is Samantha's public modulus? What is her private signing key? (b) Samantha signs the digital document D = 630579. What is the signature?

Answers

Answer:

Why is samantha asking us? She should find out herself smh

Explanation:

What is the relationship between optical drives and WORMs?

Optical drives are advanced versions of WORMs.
WORMs do not affect optical drives.
Optical drives are susceptible to WORMs.
WORMs are types of optical drives.

Answers

Answer:

When data is written to a WORM drive, physical marks are made on the media surface by a low-powered laser and since these marks are permanent, they cannot be erased. Rewritable, or erasable, optical disk drives followed, providing the same high capacities as those provided by WORM or CD-ROM devices.

Explanation:

Good luck

PLEASE HELP Write a program that loads one three-digit number and prints the root of its largest
digits in python.​

Answers

Answer:

num1 = float(input("Enter first digit of number: "))

num2 = float(input("Enter second digit of number: "))

num3 = float(input("Enter third digit of number: "))

if (num1 > num2) and (num1 > num3):

  largest = num1

num_sqrt = num1 ** 0.5

elif (num2 > num1) and (num2 > num3):

  largest = num2

num_sqrt = num2 ** 0.5

else:

  largest = num3

num_sqrt = num3 ** 0.5

print("The square root of largest digit of the three digit number is",num_sqrt)

Explanation:

num1 = float(input("Enter first digit of number: "))

num2 = float(input("Enter second digit of number: "))

num3 = float(input("Enter third digit of number: "))

if (num1 > num2) and (num1 > num3):

  largest = num1

num_sqrt = num1 ** 0.5

elif (num2 > num1) and (num2 > num3):

  largest = num2

num_sqrt = num2 ** 0.5

else:

  largest = num3

num_sqrt = num3 ** 0.5

print("The square root of largest digit of the three digit number is",num_sqrt)

Exercise 2. Sequence of Steps.
Directions: Refer to the Exercise l. write the numbers of the following pictures according to its
functions and importance. Discuss your answer.
C. Assessment/Application/Outputs (Please refer to DepEd Order No. 31, s. 2020)
Directions: Write True if the statement is correct and write false if it is not correct.
7. Rules must be followed all the time to avoid fatalities.
2. Rinse digging tools with a garden hose and use a wire brush or putty knife to get rid of
caked-on dirt.
3. Air release valves are incorporated into drip irrigation systems to release cir trapped
within the system.
4. Don't forget to take care of the wood handles as well.
5. Sprinkler irrigation is more or less the opposite of drip irrigation. Instead of supplying water
directly to the roots, the water is supplied overhead, usually in the form of downpour provided
by sprinklers
6-20.Discuss the advantages and disadvantages of the different types of irrigation systems
in farming.
21-25. Make a sample of incident report,
D. Suggested Enrichment/Reinforcement Activity/ies
Directions: Why do application of irrigation systems plays a vital role in farming? Discuss
your answer in a paragraph form.
References: Cuniculum Guide, MELC's, varied internet sources.​

Answers

Explanation:

irrigation stabilizes farm production by protecting against drought and by increasing crop yields and quality when rainfall is insufficient.

The ability to retrieve previously published data and research rather than each organization paying for or collecting their own data to analyze is an example of?

Answers

Answer:

open access

Explanation:

The photograph shows a way individuals work together in groups a the photograph​

Answers

Answer:

D. Administrators

Explanation:

Hope it helps

#CarryOnLearning

Hey does anyone think nervegear would be possible? (Just asking)

Answers

Answer:

Depends

Explanation:

Technology is not advanced yet, so building a fully functional nerve gear is difficult. It could be possible in a few years though.

Answer:

No, the Nerve Gear cannot be possible at the moment. However, in Japan, they are creating the Nerve Gear and is to be released in May 2022 told by the creator, Kayaba Akihiko. So, the Nerve Gear cannot be possible in 2020 but in 2022. We just have to wait for two more years.

Explanation:

please choose me as brainliest if that is ok ;)

Which character is used to create an absolute reference to a cell?

Answers

Sadness refer to it as a mitochondria since it’s blue and it can represent as something

Answer:

$ - The dollar sign

Explanation:

The dollar sign creates an absolute reference in a cell. Absolute reference refers to an actual fixed location on a worksheet in Excel.

Think of an aspect of HTML that you found challenging to master. Why is that aspect of HTML important? What are some future situations that you could use it in?

Answers

Answer:

it will help in future by a situation if you want to do software engineers in that situation it will help you and also

List three features of the third generation of computers

Answers

Explanation:

Features:

1.They were small and efficient than previous generation.

2.They use integrated circuits as main electronic circuit.

3.The operating speed was increased unto nano seconds.

Hope it helps and have a good day.

What is the status of this account?
A)Current
B)Current, but closed
C)Potentially negative
D)Potentially negative, but closed

Answers

D)Potentially negative, but closed

we know this due to this

-scav

The given account is Potentially negative, but closed. Option D is correct.

What is the Potentially negative account?

A closed account with a “Potentially negative closed” designation has a history that a lender would find unfavorable.

Negative account are the information includes things like missed payments on credit cards and loans, charge-offs, collections, bankruptcies, short sales, deeds in lieu of foreclosure, and foreclosures.

The given image clearly indicated that the account is under the debt and it is called as the Potentially negative, but closed account. The section under “Potentially negative items” will contain a list of all accounts that could be seen negatively by lenders or other people looking at your credit history.

Therefore, option D is correct.

Learn more about the account, refer to:

https://brainly.com/question/29108212

#SPJ2

The purpose of project management is _____. executing a requirement improvement working toward a common goal completing a project

Answers

Answer:

working toward a common goal.

Explanation:

Project management can be defined as the process of designing, planning, developing, leading and execution of a project plan or activities using a set of skills, tools, knowledge, techniques and experience to achieve the set goals and objectives of creating a unique product or service.

Generally, projects are considered to be temporary because they usually have a start-time and an end-time to complete, execute or implement a project plan.

Furthermore, the main purpose of project management is working toward a common goal.

This ultimately implies that, project managers should ensure adequate attention and time is taken to identify, analyze and manage capital, raw materials, people, system of tasks and other resources, so as to effectively and efficiently achieve a common goal with all project stakeholders.

The fundamentals of Project Management which are universal across all fields and businesses includes;

1. Project initiation.

2. Project planning.

3. Project execution.

4. Monitoring and controlling of the project.

5. Adapting and closure of project.

In conclusion, it is very important and essential that project managers in various organizations, businesses and professions adopt the aforementioned fundamentals in order to successfully achieve their aim, objectives and goals set for a project.

Harold is working on a science project that includes a spreadsheet containing calculated results based on the data. An obviously incorrect result is being calculated and displayed. The data is correct, but the formula must be flawed. To get the correct information, Harold clicks on the cell containing the incorrect results and adjusts information contained in the:
A. the formula bar.
B. the shortcut toolbar.
C. the calculator pop-up.
D. the column header.

Answers

Answer: When entering a formula into a cell, you begin with  an equal sign

Functions and formulas are calculations a spreadsheet program applies to data.

Functions are preset calculations within spreadsheet software.

Formulas are user-entered calculations that may contain cell references, numerical values, and preset calculations.

A bank uses a computer program during the night to tell if the alarm should be rung. Sensors in the bank set the following Boolean variables:
vaultClosed: set to true if the bank vault is closed; otherwise false

heardNoise: set to true if a microphone heard noise; otherwise false

sawMovement: set to true if a camera saw movement in the bank; otherwise false

The automatic alarm should notify the police if there is noise and movement in the bank, or if the bank vault is open.
Which of the following boolean expressions can be used in a selection statement to ring the alarm?
A. NOT vaultClosed OR (heardNoise AND sawMovement)
B. heardNoise AND vaultClosed
C. NOT vaultClosed AND sawMovement
D. heardNoise AND sawMovement

Answers

Answer:

A. NOT vault Closed OR (heard Noise AND saw Movement)

Explanation:

Boolean expression is an expression which has logical or relational operator and they operate on boolean variables. In the given scenario the the expression used will be NOT vault closed or heard noise and saw movement. This will notify the police when the vault is opened or is tried to be opened. When there is any movement in the vault or when there is some noise the automatic alarm will ring and notify the relevant officials.

Question 3 of 10 A compressed file containing visual data is called O A. a track O B. a video O C. an audio file . O D. an image file
it's called an image file​

Answers

[tex]\huge{\textbf{\textsf{{\color{pink}{An}}{\red{sw}}{\orange{er}} {\color{yellow}{:}}}}}[/tex]

D. An image file.

ThanksHope it helpsPls mark as brainliest

Which of the following is true of how packets are sent through the Internet?

Packet metadata is only included on important packets to indicate they should get access to faster paths through the network

Packet metadata is used to route and reassemble information travelling through the Internet

Information sent through the internet is only encapsulated in packets if the message is too large to be sent as a datastream

Information sent through the internet is split into two packets, one which contains the message and another which contains the metadata

Answers

Packet metadata is used to route and reassemble information travelling through the Internet

-scav

New technology is NOT vital to businesses in which of the following ways?

Add to a product portfolio

Decrease market share

Help businesses stay competitive

Attract new customers

Answers

Answer:

The only option that would best fit this situoaion is Decrease market share, both Help businesses stay competitive and Attracting new customers are kind of similar and depend on new tech about 60-80% of the time usually, the first option dose no have any major connection with new technology.

hope this helps :)



What spreadsheet tool could be used to add together the numbers in a
selected group of cells?

Answers

Answer:

=SUM(range)

example:

=SUM(A3:A9)

Explanation:

- range refers to a selected group of cells

- SUM is a function (predefined formula) for adding up cells or range

Complete the statement about WYSIWYG editors when you use a WYSIWYG editor you typically specify the continent and blank A.layout B.Html Code C. Meta tags while the editor generates the blank A.layout B. Html code C. Meta tags

Answers

Answer:

When you use a WYSIWYG editor you typically specify the content and layout while the editor generates the HTML code

Explanation:

Required

Complete the blanks

In WYSIWYG, the user of the application provides contents to the WYSIWYG software and also designs the appearance; The appearance is referred to as the layout.

Throughout the design, the user will not use HTML codes; it is the duty of the WYSIWYG editor to generate HTML code based on the input designs by the user.

Wesellyoubuy, a consumer electronics company, received consumer complaints about its employees not being able to communicate with consumers properly. After investigating the prime reason behind these complaints, the management found that the consumer service employees were following the same strategy to address all types of consumer issues. The management immediately started a new training program for the consumer service employees where they were trained to respond to every possible query a consumer might have. Eventually, their service ratings and sales showed improvement. In this scenario, the consumer service team improved _____.

Answers

Answer:

customer satisfaction

Explanation:

The consumer electronics company started a new training program for the consumer service employees as the company found that the consumer service employees were following the same strategy to address all types of consumer issues due to which they were not able to communicate with consumers properly.

This leads to improvement in service ratings and sales.

In this scenario, the consumer service team improved customer satisfaction

A software development company has created an application called FileCleanUp. When the application is run on a user device, it searches for all files (including pictures, videos, and documents) that have not been accessed in the past month, stores them on the company’s Web server, and deletes them from the user device. The application runs once each day. Users have the ability to manually retrieve files from the server if they are needed.
Which of the following is most likely to be a harmful effect of using FileCleanUp?
A. It prevents users from accessing frequently used files when there is no Internet connectivity.
B. It prevents users from accessing infrequently used files when there is no Internet connectivity.
C. It prevents users from accessing frequently used files when there is reliable Internet connectivity.
D. It prevents users from accessing infrequently used files when there is reliable Internet connectivity.

Answers

Answer:

B

Explanation:

The app will delete files that have not been accessed in the past month and store them on a web server. This means that the user cannot access those files unless they have an internet connection

The app will delete files that have not been accessed in the past month and store them on a web server. This means that the user cannot access those files unless they have an internet connection.

What is Software development?

Supercomputing and other computing methods are sometimes used interchangeably. Yet, there are times when the synonyms aren't clear. To assist clarify some similarities and differences between various computer types, here are some common analogies.

While supercomputing typically refers to the process of complex and massive calculations used by supercomputers, high-performance computing (HPC) is the utilization of several supercomputers to execute difficult and huge computations.

Supercomputers are often known as parallel computers since they can perform parallel processing. Parallel processing is the simultaneous use of many Processors to solve a single calculation.

Therefore, The app will delete files that have not been accessed in the past month and store them on a web server. This means that the user cannot access those files unless they have an internet connection.

To learn more about Software, refer to the link:

https://brainly.com/question/985406

#SPJ6

If the cell to the right of the cell you are typing in is ________, the data can "bleed" over that cell.
A. Full
B. Numerical
C. Empty
D. Formatted
**ATTENTION** If you send me a file, or a link for something to download your answer will be reported. Please answer through text. Thank you!

Answers

The answer to the question is c

Which of these examples demonstrate portfolio income?

Answers

Answer:

Explanation:

is money that describe when a car house is sold

Why might an algorithm created to assist in hiring decisions be biased?

Previous decisions were flawed.

Previous data has no effect.

The algorithm used incomplete source data.

Answers

Answer:

Previous decisions were flawed

Explanation:

An algorithm depends entirely on the data input into the system in the decision making process.

As such, when there are conclusions in the data set used by the algorithm for decision making which are distorted, such as the association of less individuals that drink and drive in the rich cities than can be found in poorer communities due to the presence of less bars uptown and as such drivers from uptown areas are given preference may include a bias that is due to conclusion on which the previous decisions were made and used in the algorithm which may have been flawed or need more detailed analysis

compare and contrast the typewriter with that if the computer keyboard pls help omg​

Answers

Answer:

Typewriters use  paper and ink

and computers keyboards is an electroic typing

Explanation:

45 Points!

This topology will require the most cabling to connect its five computers and two peripherals-the scanner and the fax.

- mesh
- bus
- star
- ring

Answers

Answer:

I think D but I'm not sure

Edhesive 11.4 code practice

Answers

Answer:

<!DOCTYPE html>

<html>

<body>

<h2>Billboard Hot 100 Songs 1980</h2>

<p>1. Blondie - “Call Me“</p>

<h2>Billboard Hot R&B/Hip-Hop Songs 1980</h2>

<p>1. Michael Jackson - “Rock with You“</p>

<h2>Billboard Hot Country Songs 1980</h2>

<p>1. Kenny Rogers - “Coward of the County”</p>

</body>

</html>

Mainly for edhesive users

100% on edhesive code practice 11.4

what would be the most constructive response

Answers

Answer:

we cant tell what your talking abt please repost with at pitcher or a exolination

Explanation:

Other Questions
Help needed for some geometry Decide if por or para should be used in the following sentence.Ella va ______ la escuelaporpara The number 652.734 written in expanded form is (6 100) + (5 10) + (2 1) + (7 1 10) + (3 1 100 ) + (4 1 1000). Suppose you want to write the number 473.892 in expanded form. Which statements are correct? Select two that apply. A.7 should be multiplied by 100. B.8 should be multiplied by 1 10. C.3 should be multiplied by 1. D.2 should be multiplied by 1 100. Use technology or a z-score table to answer the question.The number of baby carrots in a bag is normally distributed with a mean of 94 carrots and a standard deviation of 8.2 carrots.Approximately what percent of the bags of baby carrots have between 90 and 100 carrots?23.3%31.2%45.5%76.73% hurry please!! what was an immediate result of delisting gray wolves? Find measure of angle WZY. 5k(k-9)=0 solve for k A sum of 7 Probability: 1) Why does Brian think that mistakes were more serious in the wilderness than in the city? Be sure toback up your answer with evidence from the text and your own thinking! answer this question for 30 points and brainilest how can communities support human trafficking What two groups are in conflict? Which of the following rights is not mentioned in the Bill of Rights?the right to keep and bear armsthe right to home ownershipfreedom of speechfreedom of religion Geraniums are $2.95 each. How much will 5 plants cost? (include 7% sales tax.) Which type of sentence is this? As Jim sat down on the rickety old chair, it abruptly collapsed beneath him. Which statement about nuclear fission and nuclear fusion is not correct?A. Both processes change atoms of one element to another element.B. Both processes can release huge amounts of energy.C. Both processes conserve mass.D. Both processes produce dangerous radiation. who ever gets this answer right will get a brainlestoptions: Anglelineline segmentpointraynone of these which of the following is true about these diagrams Ill give brainlist to anyone who answers correctly With my tummy growling, I approached Beamer. "Howabout a nice cheeseburger?" I asked.I waited as the screen loaded."Sorry, your cholesterol was a bit high this morning. Here'sa chicken salad."I frowned at the food that appeared. I was just starting tothink about watching the football game when I wasinterrupted"Your laundry will be dry in 10 minutes. After you fold it andput it away, you'll need to increase your pedometerreadout. Take a walk to the library and back. Your booksare due today"I sighed. Looks like no football game today.What does the author's word choice most clearly suggest about the narrator'sfeelings toward Beamer?A. She uses the words "appeared" and "increase" to convey that thenarrator feels excited to interact with Beamer.B. She describes the narrator as hopeful at first but thendisappointed about his meal and his activityC. She uses the words "frowned" and "sighed" to show that thenarrator is unhappy with Beamer's control of his life.D. She uses the phrase "you'll need to to indicate that Beamer hasauthority over these decisions Which sentence does not contain a misspelled word? I was trying to tie the kite's string when the perfectally aimed beach ball hit it. I was tryeng to tie the kite's string when the perfectly aimed beach ball hit it. I was trying to tie the kite's string when the perfectly aimed beach ball hit it. I was triing to tie the kite's string when the perfectly aimed beach ball hit it.