sammm4076 sammm4076
  • 25-02-2022
  • Computers and Technology
contestada

What does it mean when a class has an argument python?.

Respuesta :

Haileymack037
Haileymack037 Haileymack037
  • 28-02-2022

Answer:

Objects of a class can optionally accept arguments. These arguments are used to set values within an object. Consider the following code: class Employee: def __init__(self, name) self.name = name The __init__method lets us assign a value for the “self.name” variable in our class. We can reference this variable in any method in our class.

Explanation:

Answer Link

Otras preguntas

THE TOPIC IS: AREA OF CIRCLES!! PLEASE HELP ME WITH THIS QUESTION!!! WHATS THE ANSWER?? I WILL GIVE YOU BRAINLIEST AND A THANKS!!! AND PLS PUT AN EXPLANATION!!
Short Plot Description (What is the book about?): What is the book of saint Louis Armstrong beach about? Help me pls
Solve the system of equations
find each of the following products using distributive property a) 735 × 16​
Leigh bought a conical candle wax mold. The height of the mold is 16.2 inches and the radius of the inside of the top of the conical mold is 2.1 inches. She fil
need help i only have 5 more minutes left
Please answer for me. No links no files no pics
8x+4= I just need the answer
Jace invested $65,000 in an account paying an interest rate of 2.5% compounded continuously. Assuming no deposits or withdrawals are made, how long would it tak
the value of( log 32 base 4 + log 243 base 9)....pls answer fast​