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
Rudiy27
3 years ago
5

What is one benefit of using object-oriented programming?

Computers and Technology
1 answer:
Nat2105 [25]3 years ago
8 0

Answer:

There are a number of advantages of object oriented programming.One of them is the maintenance of code.

Explanation:

Object-oriented programming can be described as programming that is based on blocks or objects.

One of the main advantages of the object-oriented programming is its capability of maintenance of codes. As the old codes are saved, so it becomes a lot easier to use the existing codes and modifying them for the new ones. This also saves a lot of time as you do not have to make all the codes again, you just have to incorporate new changes into the existing codes.

You might be interested in
A personal phone directory contains room for first names and phone numbers for 30 people. Assign names and phone numbers for the
Fynjy0 [20]

Answer:

# include <iostream.h>

# include <stdio.h>

# include <string.h>

using namespace std;

class citizen

{      

    int i;

    public string name[30];

    public long int phonenumber[30];

    public void addindividual(string name1)

     {      

           If (i<=30)

            {     int flag=0;

                  for(int j=0; j<=i;j++)

                  {

                     if (strcmp(name[i], name1)

                      {

                          flag=1;

                      }

                     else

                     {  

                           flag=0;

                     }

                  }

                  If (flag)

                 {

                  if (i<30)

                  {

                  for(j=i+1;j<=30; j++)

                  {

                        cout<<"Enter the name:"; getchar(name[j]);

                        cout<<"Enter the phone number:"; cin>>phonenumber[j];

                         i++;

                   }

                  else  

                   {

                        cout<<"The person already exists";

                        exit();

                   }

              }

            else

             {

                 cout<<"array is full:";

                 exit();

             }

     }

}

Void main()

{

     string str;

    cout<<" Enter name:";

    getline(cin, str); ;

     citizen c1=new citizen();

     c1.addindividual(name1);

}

Explanation:

With a little more effort you can make the program allow the user to enter any number of details, but less than 30 overall. We have used here flag, and as a programmer we know why we use the Flag. It is used to check whether certain Boolean condition is fulfilled or not. Here, we are checking whether a given name is present in the array of names, and if it is not present, we add that to the list. And if the name is present, we print, it already exist.

4 0
3 years ago
T or F: Is there such thing as an OptiPlex 3020
eduard
T.
I hope this helps!
8 0
3 years ago
true or false then EXPLAIN why. Since many forms of money do not earn interest, people's demand for money is unaffected by chang
katrin [286]

Answer:

False

Explanation:

It is true that many forms of money do not earn interest. However, it is not true that this means that people's demand for money is unaffected by changes in interest rates. One of the ways interest rates can change the demand for money is because this can influence the way people divide their money. When a person has money, he can decide whether to keep this in teh form of money, or whether to keep wealth through another asset. When interest rates decrease, people are more likely to keep money in the form of money, as opposed to other assets. This is the source of the demand for money.

3 0
3 years ago
Read 2 more answers
Indica las ventajas del sistema biela manivela.
leva [86]

Answer:

El atributo más importante de una manivela de rendimiento del mercado de accesorios es que a menudo tiene más trazo, por lo que puede crear un paquete de stroker y así agregar más pulgadas cúbicas en el motor. Otra ventaja es tener una versión que no está disponible de otra manera, como una manivela 360 (3,58 pulgadas de carrera) con una pequeña red (tamaño 318/340).

5 0
3 years ago
How many registers are there in the memory unit?
Sati [7]

Answer:

Most modern CPU's have between 16 and 64 General Purpose Registers. Special Purpose Registers have special uses and are either nonprogrammable and internal to the CPU or accessed with special instructions by the programmer.

5 0
3 years ago
Other questions:
  • Multiple choice
    9·2 answers
  • What is 1-7? Plz help!!!
    15·1 answer
  • What is the value of length after the code that follows is executed?int[][] nums = { new int [] {1, 2, 3},new int [] {3, 4, 5, 6
    8·1 answer
  • As photography developed, a variety of materials were employed as image capture surfaces. Choose the correct order
    7·1 answer
  • A local variable that is declared as ____ causes the program to keep the variable and its latest value even when the function th
    10·1 answer
  • What is computer code?<br> A. Java Script<br> B. XML<br> C. HTML<br> D. Any programming language
    6·1 answer
  • The idea that an object can exist separate from the executing program that creates it is called
    13·1 answer
  • Select all correct statements below: Group of answer choices A redundant link's switch port will be blocked by STP until needed.
    6·1 answer
  • What approach do you prefer to take when creating presentations for class projects? Would you rather use software or create pres
    12·2 answers
  • What command will prevent all unencrypted passwords from displaying in plain text in a configuration file?.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!