instance tag

6 questions


1 answers
230 views
0
Questions about creating Python class objects

acc_cus = []dif = 0while 1: num = int(input( ++++++++++++++++++++++++++++++Enter the number of the item you want.1. Create an account2. Deposit3. Withdrawal4. Check account information5. Shutdown++++...

1 years ago

1 answers
113 views
0
What is the difference between a class variable and an instance variable?

What is the difference between a class variable and an instance variable?

1 years ago

2 answers
85 views
0
What are references and instances?

I'm studying Java and the address of the array is called a referenceI have no idea about the reference, so I'm asking you a question.What are references and instances?I hope it's easy to understand be...


1 answers
111 views
0
(Python) How do I write code?

class Account: def __init__(self, money): self.__money = moneyclass AccountManager: def __init__(self): self.__accList[] def newAcc(self): global Name global money self.__accList.append(Name) ##...

1 years ago

1 answers
68 views
0
[Java] I ran the example in the book while I was studying, and I got an error. java.lang.NoSuchMethodError

Below is the code that was moved as it was in the book.----------------------------------------------------------------------------------------------------------class FruitSeller { int numOfApple; int...


2 answers
87 views
0
I want to use Python instance as a variable in the method.

If you answer my question, I will never forget this kindness.My question is, to sum up,I want to use the instance as a variable in the method.For example, class Marine: def __init__(self): self.healt...


© 2024 OneMinuteCode. All rights reserved.