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
Korolek [52]
3 years ago
10

A constructor is a method that: Question 8 options: A) Performs initialization or setup operations. B) Never receives any argume

nts. C) Returns an object of the class. D) With the name ClassName.constructor.
Computers and Technology
1 answer:
ivanzaharov [21]3 years ago
7 0

Answer:

Option A is correct.

Explanation:

A constructor is a function which executes assigning or initialization functionalities.

Its name is similar to the class name in most of the Programming Language but in some Programming Language the programmer uses the init keyword with the underscore and parentheses that are __init__(), but the calling process is same in all the Programming Language.

So, the following are the reason that describe the other options are incorrect according to the scenario.

You might be interested in
Eight houses represented as cells are arranged in a straight line java int state []
monitta

Answer:

int state[] = new int[8];

8 0
4 years ago
When molten igneous material intrudes into rock _____ metamorphism can occur.
Gnom [1K]
B) Contact metamorphism can occur.
8 0
4 years ago
NEED HELP FAST TIMED !!!!
Trava [24]

Answer:

oil rings = encloses combustion by closing off the extra space between the block and the head,

crank shaft = connects the engine to the transmition through a series of mechanisms.

gasket = reduces the amount of exhaust inside the cylinder by sealing the cylinder.

Explanation:

3 0
3 years ago
Read 2 more answers
(1) Output a menu of automotive services and the corresponding cost of each service. (2 pts) Ex: Davy's auto shop services Oil c
Wittaler [7]

Answer:

service1_cost = 0

service2_cost = 0

print("Davy's auto shop services")

print("Oil change -- $35, Tire rotation -- $19, Car wash -- $7, Car wax -- $12")

service1 = input("Select first service: ")

service2 = input("Select second service: ")

if service1 == "Oil change":

   service1_cost = 35

elif service1 == "Tire rotation":

   service1_cost = 19

elif service1 == "Car wash":

   service1_cost = 7

elif service1 == "Car wax":

   service1_cost = 12

elif service1 == "-":

   service1 = "No service"

   service1_cost = 0

if service2 == "Oil change":

   service2_cost = 35

elif service2 == "Tire rotation":

   service2_cost = 19

elif service2 == "Car wash":

   service2_cost = 7

elif service2 == "Car wax":

   service2_cost = 12

elif service2 == "-":

   service2 = "No service"

   service2_cost = 0

print("- - -")

print("Davy's auto shop invoice")

print("Service 1: " + service1 + " costs $" + str(service1_cost))

print("Service 2: " + service2)

print("Total: $" + str(service1_cost + service2_cost))

Explanation:

- Initialize the variables for cost values

- Ask the user for the services

- Depending on the user choice, calculate the cost of each service using if else structure

- Print the chosen services, cost of each service and total cost    

3 0
3 years ago
Cual sido el invento con más impacto en la hunanidad?​
tamaranim1 [39]

Answer:

el fuego

Explanation:

porque este ayudo a nuestros antepasados a protegerse del frío y poder sacarle mas provecho a los alimentos que conseguían, tambien para la elaboracíon de herramientas

3 0
3 years ago
Read 2 more answers
Other questions:
  • The ____ file permission category in unix/linux systems typically entails all permissions and is designated by the letter u.
    7·1 answer
  • How does this app work?
    11·2 answers
  • PreparedStatement ps = connection.prepareStatement("select firstName, mi, lastName from Student where lastName = ?"; ps.setStrin
    5·1 answer
  • Effective presentations vary the color scheme on each slide.
    7·2 answers
  • Create an array named itemDescription containing the following item descriptions:
    15·1 answer
  • When you use the 3 bits 100 what color will it produce?<br><br> Computer Science
    11·1 answer
  • For this activity, you will practice being both proactive and reactive to bugs. Both are necessary to get rid of errors in code.
    5·1 answer
  • ACTIVITY NO. 5 (DAY 5) FACT OR BLUFF. Write Fact if the statement is correct and write Bluff if it is incorrect.
    12·1 answer
  • When proofreading, you should do all of the following except _____.
    14·1 answer
  • At a red traffic light, you must stop__
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!