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
inna [77]
3 years ago
6

Overloading in methods are popular in programming, and why overloading is important.

Computers and Technology
1 answer:
Cerrena [4.2K]3 years ago
5 0

Answer:

 Yes, overloading is one of the methods which are popular in programming language. Overloading basically refers to the same function but different signature called function overloading or method overloading. It is the ability to define the multiples method by using the single identifier.

The overloading is important because it has the ability to design the multiple method by using similar name. It also provide the high flexibility to the programmers to call the same method in the data. overloading basically provide the high clarity in the code.

Overloading is used to achieved the compile time polymorphism.  

Following are program of function overloading in c++ are:

Class abc // creating class

{

public:

int p;

void fun() // function fun with no parameter/

{

cout<<” hello “;

}

void fun(int a) // function fun with parameter

{

p=a;

cout<<p;

}

};

int main() // main function

{

abc ob; // creating object

ob.fun();// print hello;

ob.fun(6);// print 6

return 0;

}

Explanation:

In this program the function fun() have same name but different signature in the main method we create the object of class abc i.e ob. ob.fun() this statement called the function with no parameter and ob.fun(6) this statement will called the function with integer parameter.

You might be interested in
A company has an Aruba solution. The company wants to host a guest login portal with this solution, and the login portal must gi
mariarad [96]

Answer: D. Choose ClearPass or the other external captive portal option for the guest WLAN.

Explanation:

The Aruba Instant On mobile app allows the configuration and monitoring of a network from anywhere. It provides an affordable solution to small businesses and they're reliable and secure.

Based on the criteria given in the question, the network administrator can meet the criteria by choosing a ClearPass or the other external captive portal option for the guest WLAN.

8 0
3 years ago
What should you do if an online friend asked to meet you after school? <br>ᵖˡˢˢˢˢ...​
soldier1979 [14.2K]

Answer:

I'm going to agree if they had some decision when we meet to each other because I want to meet them in personal.

Explanation:

That's my own opinion

8 0
3 years ago
Read 2 more answers
When a switch is closed, completing an lr series circuit, the time needed for the current to reach one half its maximum value is
uysha [10]
The answer is <span>0.693 .  </span><span>When a switch is closed, completing an LR series circuit, the time needed for the current to reach one half its maximum value is 0.693   

</span>e^(-t/T) = 0.5 
<span>-t/T = ln(0.5) = -0.693 </span>
7 0
3 years ago
Match the following Microsoft Windows 7 ​
Dominik [7]

Answer:

Explanation:  will be still function but Microsoft will no longer provide the following: Technical support for any issues

6 0
3 years ago
__________ is a growing practice in cooperative farmingassociations to pool and sell the fruit as a common commodity underthe br
garik1379 [7]

Answer:

There

Explanation:

Great question, it is always good to ask away and get rid of any doubts that you may be having.

The Correct and only answer for the sentence given in the question is <u>"There"</u>. From the four answers given, <u>"There"</u> is the only answer that makes factual and grammatical sense in the sentence displayed. Therefore it is the correct answer.

** "One" could work if you took out the "is" after it, otherwise it will just be grammatically incorrect. **

I hope this answered your question. If you have any more questions feel free to ask away at Brainly.

5 0
3 years ago
Other questions:
  • How many times does the following loop execute? double d; Random generator = new Random(); double x = generator.nextDouble() * 1
    14·1 answer
  • What is difference between actual parameters and formal parameters in java?​
    8·2 answers
  • Which option allows you to view slides on the full computer screen? A) new slide B) slide show C) slide sorter
    11·2 answers
  • Cd-roms typically use the _______ filesystem type.
    11·1 answer
  • What is the output of executing the code segment?
    7·1 answer
  • . Convert BAC4 from hexadecimal to decimal. Show your work.
    9·1 answer
  • Which phrases/sentence correctly describe the use of bitmap images?
    8·1 answer
  • Which computer network component connects two different networks together and allows them to communicate?
    8·2 answers
  • Difference between primary key and foreign key
    12·1 answer
  • HELP ASAP WILL GIVE BRAINLY Question 19 Multiple Choice Worth 5 points) (05 03 MC) Network technologies specialist Hannah has be
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!