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
Allushta [10]
4 years ago
7

The class constructor function must have the same_______ as the class,

Computers and Technology
1 answer:
inn [45]4 years ago
5 0

Answer:

Name.

Explanation:

The constructor in the class must have the same name as the class.Constructors are used to initialize the object when created.There are basically three types of constructors which are as following:-

  1. Default Constructor.
  2. Parameterized Constructor.
  3. Copy Constructor.

Default Constructor:-This constructor is already present in the class when the class is defined.It does not have any arguments.

Parameterized Constructor:-As the name suggests this constructor have parameters that are used to initialize the object.

Copy Constructor:-This constructor is called whenever an object is copying the values of other object.For example:-

There is already an object present with name obj1.

class obj2=obj1;

You might be interested in
Drag each tile to the correct box.
Nonamiya [84]

Answer:

Directs the flow of data → Control Unit

Holds data the CPU needs at the moment → Random Access Memory/RAM

Stores startup instructions → Read-Only Memory/RAM

Performs Calculations → Arithmetic Logic Unit/ALU

Explanation:

7 0
3 years ago
Read 2 more answers
How Can I add a image in an HTML program?​ please tell
Doss [256]

Answer:

use the img tag

Explanation:

First of al, HTML is not a program, it is a markup language.

To add an image, use:

<img src="...url to the image...">

8 0
3 years ago
Algorithm and flowchart:- calculate d=a+b-c​
Keith_Richards [23]

Answer:

a=c

hope it helps

4 0
3 years ago
Select the correct answer.
Ksivusya [100]

I would have to say Effective Communication. Mainly because if everyone you have a team arguing over every option you are not focusing on one thing. This way you can discuss each option and have less of a divide if you all communicate what you feel effectively.

It could also be Leadership because as a leader you can avoid it completely and choose for your team. However based on what they are asking I still believe it would be B.

4 0
3 years ago
Read 2 more answers
Is the following statement a valid parameter declaration? please explain!! i need a lot of help! thank you!
Gelneren [198K]

Answer:

NO

Explanation:

The parameter is declared in the function definition which takes the value from the calling function.

In the define function, we also declare the parameters with it type like int, char, float or double, etc.

Let's discuss the given function:

public void baseball (int batting average, hits,homeruns)

In the function, three variables are shown.

1. int batting average: Here, the variable type (int) is declared but the variable is not valid because the programming variable must NOT contain any space.

here, space exists between batting and average which is wrong.

2. hits: here, the variable type is not declared. this parameter is also not correct to declare.

3. homeruns: the variable type is not declared. this parameter is also not correct to declare.

Therefore, the statement has no valid parameter declaration.

6 0
3 years ago
Other questions:
  • If I add a # symbol in front of the cells row/column, it will keep the value true.
    14·1 answer
  • How could a system be designed to allow a choice of operating systems from which to boot? What would the bootstrap program need
    14·1 answer
  • Which gauge indicates the total number of miles your car has been driven since it was manufactured? A. The speedometer B. The ta
    13·2 answers
  • Which quality determines an individual's ability to be open to changes and complete tasks in an ever-changing work environment?
    12·1 answer
  • Jenny’s needs to buy a computer to create word documents, make presentations, listen to music, and watch movies and videos. Whic
    12·1 answer
  • 2. When a process is "listed" in a queue, what information is actually stored in the list in memory?
    14·1 answer
  • Can someone please help me on these short short questions marking Brainly computer modeling people please help
    14·1 answer
  • Where do you place the logical test argument in an IF function formula?
    6·2 answers
  • STOP DELETING MY ANSWERS AND QUESTIONS!!!!!!!
    9·1 answer
  • Can you think of a situation that might create a problem for a website’s security? What could a back-end developer do to prevent
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!