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
daser333 [38]
3 years ago
11

How does polymorphism enable you to program "in the general" rather than "in the specific"? Discuss the key advantages of progra

mming "in the general."
Computers and Technology
1 answer:
barxatty [35]3 years ago
4 0

Answer:

Explanation:

When programming in an OOP language classes are created to represent real-life objects, people, places etc. from the real world. Programming in the general allows you to cut down your code and making it more efficient by applying the same necessary functions to all of the objects that classify under the same category. For example by programming "in the general" and creating an Animal class you can create all of the functions/behaviors that animals tend to have. Then you can apply these functions/behaviors to various animals such as a Cat, Dog, Horse, etc. But if you program in the specific you cannot apply a Cat class to a Dog since they are not the same thing.

You might be interested in
If you were at the front of a long line of people, stepped onto a chair and took a
WINSTONCH [101]
They are closer to the people and they work than a senior management
7 0
3 years ago
Given the following code char a[2][4] = { { 'c', 'a', 'r', 'b' }, { 'i', 'k', 'e', '\0' } }; char *p = &a[0][0]; while (*p !
adell [148]

Answer:

You'd get a compiling error.

Explanation:

Since this code is presumably written in C++, it doesn't include an "int main()", and without it you'll have a compiling error when you create functions. Since the start of a C++ program is looking for "int main()" and one doesn't exist, the program cannot compile.

Since the only function here is the while statement, then that's what the compiler will scream at you for. If you put all of this code within an "int main()", you'll no longer have a compiling error, and you'll have "carbike" written to the console.

I hope this explanation helps! You're welcome!

7 0
2 years ago
A(n) ______ disk is a storage device that contains one or more inflexible, circular platters that use magnetic particles to stor
Delvig [45]
Hard






----------------------------------------------
5 0
3 years ago
Ashton assigned a string value to a variable. Which program statement should he use?
ryzh [129]
The second one
bc it looks correct

6 0
3 years ago
In which of these images would lines become an evaluating factor?
hichkok12 [17]

Answer: The fish?

Explanation:

4 0
3 years ago
Other questions:
  • 2. To learn the proper way to set up a table of contents, editors can use a A. style manual. B. dictionary. C. grammar checker.
    15·1 answer
  • A _____ is a digital media file distributed over the Internet using syndication feeds for playback on mobile devices and persona
    6·1 answer
  • the UDP server described needed only one socket, whereas the TCP server needed two sockets. Why? If the TCP server were to suppo
    8·2 answers
  • Based on your learning this week, consider rules, policies, and procedures. Technicians are often eager to just get started on a
    10·1 answer
  • Jessica has a balance of $2,200 on her credit card with an 18% interest rate. Her credit card company doesn’t require a minimum
    15·1 answer
  • Which paragraph from the article helps explain what “engaged” is referring to?
    9·1 answer
  • Advantages and disadvantages of using the command-line interface to manage files and folders
    14·1 answer
  • A Configuration Management System is a collection of formal documented procedures used to apply the following items EXCEPT:
    11·1 answer
  • Guys help me, to get 25 examples of computer software​
    8·1 answer
  • SOMEONE HELP 60 POINTS!!!!! When creating business publications, these two factors must be determined before planning the layout
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!