183
社区成员
The Link Your Class | https://bbs.csdn.net/forums/MUEE308FZ | |
The Link of Requirement of This Assignment |
| |
The Aim of This Assignment |
| |
MU STU ID and FZU STU ID | 19105681 831901211 |
Host: The person responsible for introducing and selling products
Customer: the person who wants to buy the product.
Merchant: one responsible for supplying goods
Administrator: the person responsible for checking whether there is any illegal behavior in the broadcasting room
1.Users bind their own identity information, log in the account to enter the studio. Here he can buy items in the shopping cart according to the recommended items of the anchor. At the same time, he can see the detailed logistics of the goods. On the payment interface, users can select payment methods such as wechat and Alipay and fill in their address information. Then you can place your order successfully. Upon arrival, if he is not satisfied, he can choose to return or exchange the goods.
2.The job of customer service is to reply some customer information on the platform, help customers better understand the product information, and deal with some after-sales services, such as helping customers to return or replace goods.
3.After gogging in to the system, anchors can open their own live broadcast studio, introduce their products in the live broadcast studio and recommend consumers to buy them.
IV.Prepare sequence diagrams or activity diagrams for primary scenarios. By the way, each scenario can be described by a sequence diagram or an activity diagram, but both diagrams must be used in this question.
(v) Prepare a class diagram for this system. Explain which principles of object-oriented are applied in your design.
Your Answer:
(6) Prepare state diagrams for primary classes.
(vii) Write the skeleton code corresponding to the class diagram in C++, Java, Python, or C#.
public class Live {
class Customer{
String Name;
}
public boolean Login(String Name,String Password) {
return true;
}
public void AskCustomer() {
}
}
public void Discount() {
}
public void Buy() {
}
}
class NormalCustomer extends Customer{
public void Buy() {
}
public void TipStreamer() {
}
}
class NetworkAnchor{
String name;
int LiveNumber;
public void LiveStream() {
}
}
class CustomerService{
String name;
public void HelpCustomer() {
}
}
class Goods{
String GoodsName;
int Price;
int GoodsID;
}
class Administer{
String password;
public boolean Login(String Name,String Password) {
return true;
}
public void checkGoods() {
}
public void AddNewGoods(String GoodsName,int Price) {
}
public void RemoveGoods(String GoodsName) {
}
}
class LoginRegisterSystem{
int SequenceNumber;
boolean CheckUserName(String Name) {
return true;
}
}
}