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
Mazyrski [523]
3 years ago
6

What is a constructor? Why would you include a constructor in a class?

Computers and Technology
1 answer:
QveST [7]3 years ago
4 0

Answer:

Constructor in the class is the member function that gets into action when any new object gets created in the class ,it gets invoked. It does not have any return type and no void return.

The constructor is used in the class because there is the requirement for the initializing of the new object and then only object can do the functioning in the program.

You might be interested in
Please help.............​
jeka94

Answer:

scoop1 - 10

Explanation:

If we want scoop2 to be 10 pixels less than scoop1, we can simply subtract 10 from scoop1 to get the needed value from scoop2.

3 0
3 years ago
Whoever understands this first and replies will be the brainliest.<br><br><br><br> Road work ahead?
Scorpion4ik [409]

I SURE HOPE IT DOES (this is the best vibe if you dont get this you are an uncultured swine)

7 0
3 years ago
Read 2 more answers
Write statements that output variable numMugs as follows. End with a newline. Ex: If numMugs is 10, the program should output: N
baherus [9]

Answer:

numMugs=input(); #take input from the user and store it on a numMugs variable.

print ('Number of mugs:'+numMugs) #print the numMugs variable value with the Number of mugs: line.

Output:

  • If the input is 8 then the program is print Number of mugs: 8.
  • If the input is 'Harry' then the program is print Number of mugs: Harry.

Explanation:

  • The above program is in python language with the two statements one in input and the other is output.
  • The first line takes input and stores it into a variable named "numMugs".
  • The second line print the value as Number of mugs: value_of_numMugs.
  • The above program works for any type of input. It can work for the string data type or integer data type or character data type or any other data type.
3 0
3 years ago
6.5 Code Practice: Question 4 Edhesive
tresset_1 [31]

Answer:

Explanation:

print('Enter 10 temperatures')

sum = 0

for i in range(10):

   S = float(input())

   sum = sum + S    

print('The sum is: ',sum)

First, we print a comment asking the ten temperatures, then we declare the variable sum = 0.

We create a for cycle where the user must enter the temperatures, 10 in this case, then we must do the operation, summing the 10 numbers.

In the last step, we print the result with the variable sum.

8 0
2 years ago
May someone help please. :(
BigorU [14]

the 3rd one, if you ever watched a dvd (i know you have) if you read the copyright note you can be fined and you may end up in jail (for five or two years depending on what you did)

7 0
3 years ago
Other questions:
  • The weird suspicious box that k12 sends the parents to put on the router. im getting strange privacy error messages on google an
    8·1 answer
  • What is an (CR) Optical character recognition?
    13·2 answers
  • Tweaking existing technology in a new way is usually called _____. leveraged creativity state-of-the-art breakthrough applicatio
    5·1 answer
  • Help me right now!!!!!!!!!!!!!!!!!!!!!!!!11
    15·1 answer
  • write a C program the prints out the size of variables with the following C data types- int, long, unsigned, long long, double,
    7·1 answer
  • What are some characteristics of filtering junk email in Outlook 2016? Check all that apply.
    10·2 answers
  • Does Buzz or APEX shows all your due assignments on the left of the main home screen?
    11·1 answer
  • Which type of choir often sings AND dances while they perform?
    9·1 answer
  • Structured query language (sql) enables data analysts to _____ the information in a database.
    7·1 answer
  • T/F static development is the process of constructing the programs and code modules that serve as the building blocks of the inf
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!