Похожие чаты

For example i have an add_to_cart method inside my Costumer

class. it adds the product to the user shopping list. now that user x (which is created some times earlier) wants to login and buy something. i shall create an instance with datas from user x to use that method? for example:
y = Costumer("datas from user x")
y.add_to_cart(product)?

3 ответов

5 просмотров

I don't get the difference between customer and user. Choose one

Arash- Автор вопроса
Muflone
I don't get the difference between customer and us...

i mean the costumer. user is a more general term that i use to refer to both costumer and seller. because the app is consisted from three parts. costumers panel, sellers panel and the admin panel. now for example a costumer want to login i shall recreate an instance from the data i have in database? how to handle multiple costumer login? or if it wants to sign up i should create its instance and store it's data in database?

Arash
i mean the costumer. user is a more general term t...

After the login you collect the matching orders and show them somewhere

Похожие вопросы

Обсуждают сегодня

А чем вам питонисты не угодили?😂
.
79
Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
75
or any website to buy prepaid card with xmr that's not trocador that's down?
Umbrella Party Partner
18
Hi, I can't understand promises in JavaScript and what we should use them for (maybe the teacher didn't teach well XD). Do you have a solution for this? And are promises used...
A
29
Добрый день, LO Writer, проблема с нумерацией таблиц (вставка названия). У меня два стиля нумерованных списка, один для основного текста (вида 1.1.1) другой доя приложений (ви...
Виктор
6
Ещё такой вопрос. Мне необходимо хранить пароль пользователя локально. Для этого планирую использовать ini файл. Это для автозаполнения полей логин и пароль при авторизации. Е...
Евгений
19
всем доброго времени суток! имею вопрос: как понять ТОЧНО, что на нексус производится атака или он перегружен? исходные данные: - Nexus OSS 3.67.1-01 на OrientDB - Total co...
Michael Kostelcev
11
Xem delist ho rha hai agr naa bhechu toh kya hoga after 1 july?
ABHI
27
Ты просто гитлеровскую эстетику плохо понимаешь. Он же всё под Цезаря делал. А это как бы запрещённый приём в политике. Пиджаки они зачем все носят? Чтобы показать что они тип...
Ivan Kropotkin
4
Did you guys see the latest tweet from TonGifts? 🚀
Mike
44
Карта сайта