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

What problems worried national leaders in 1787 ?
Ron and Pam each have 20 pennies Ron will put his pennies into 4 groups pam will put her pennies into 5 groups who will have more pennies in each group explain
does 9/11 equal 27/33
I'm writing an essay in English on whether learning always has a positive effect on a persona life. I said that it does. I need another main idea!!!! My first o
Is this right ? Help
The ______ is the pink tissue that surrounds the teeth and covers the alveolar mucosa. a. cementum b. gingival c. cervix d. dentin
A TV has a listed price of $603.99 before tax. if the sales tax rate in 6.25%, find the total cost of the TV with sales tax included.
The Soviet blockade of West Berlin in 1948 was designed to prevent
Many countries use DDT to control the spread of deadly __________.
you did 200 of work lifting a 150 newton-pack.how high did you lift the bookbag